fix: Update path and board name for fw builder

This commit is contained in:
Peter Feerick
2022-08-20 10:59:50 +10:00
committed by Peter Feerick
parent f560805fee
commit 1500122b12
+2 -2
View File
@@ -9,7 +9,7 @@ import tempfile
boards = {
"TLITE": {
"LR3PRO": {
"PCB": "X7",
"PCBREV": "LR3PRO",
"DEFAULT_MODE": "2",
@@ -42,7 +42,7 @@ def build(board, translation, srcdir):
suffix = "" if index == 0 else "_%d" % index
filename = "output/firmware_%s_%s_%s%s.bin" % (board.lower(), translation.lower(), timestamp(), suffix)
if not os.path.exists(filename):
shutil.copy("%s/firmware.bin" % path, filename)
shutil.copy("%s/arm-none-eabi/firmware.bin" % path, filename)
break
index += 1
shutil.rmtree(path)