Skip to content

Commit

Permalink
FW: Abort cube fw that is not compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedals2Paddles committed Dec 30, 2019
1 parent b1ee2c9 commit ee96f9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions sololink/flightcode/python/pixhawk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion sololink/px_uploader/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee96f9a

Please sign in to comment.