Tools: include bin files on firmware server for AP_Periph

This commit is contained in:
Andrew Tridgell 2019-10-25 11:57:15 +11:00
parent 355839e413
commit 9a176526d7
1 changed files with 5 additions and 1 deletions

View File

@ -401,7 +401,11 @@ is bob we will attempt to checkout bob-AVR'''
"bin",
"".join([binaryname, framesuffix]))
files_to_copy = []
for extension in [".px4", ".apj", ".abin", "_with_bl.hex", ".hex"]:
extensions = [".px4", ".apj", ".abin", "_with_bl.hex", ".hex"]
if vehicle == 'AP_Periph':
# need bin file for uavcan-gui-tool and MissionPlanner
extensions.append('.bin')
for extension in extensions:
filepath = "".join([bare_path, extension])
if os.path.exists(filepath):
files_to_copy.append(filepath)