mirror of
https://github.com/OpenSolo/OpenSolo.git
synced 2025-04-29 14:14:30 +02:00
FW: Abort cube fw that is not compatible
This commit is contained in:
parent
b1ee2c960f
commit
ee96f9a0c4
@ -431,6 +431,8 @@ def load(firmware_path):
|
||||
else:
|
||||
os.system("rm -f /firmware/*.apj")
|
||||
os.system("rm -f /firmware/*.px4")
|
||||
os.system("rm -f /firmware/resetParams")
|
||||
rebootPixhawk
|
||||
|
||||
time.sleep(5)
|
||||
return loaded
|
||||
|
@ -916,10 +916,11 @@ def main():
|
||||
except RuntimeError as ex:
|
||||
# print the error
|
||||
print("\nERROR: %s" % ex.args)
|
||||
sys.exit(1)
|
||||
|
||||
except IOError:
|
||||
up.close()
|
||||
continue
|
||||
sys.exit(1)
|
||||
|
||||
finally:
|
||||
# always close the port
|
||||
|
Loading…
x
Reference in New Issue
Block a user