diff --git a/sololink/flightcode/python/pixhawk.py b/sololink/flightcode/python/pixhawk.py index f15c284..bb0054c 100755 --- a/sololink/flightcode/python/pixhawk.py +++ b/sololink/flightcode/python/pixhawk.py @@ -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 diff --git a/sololink/px_uploader/uploader.py b/sololink/px_uploader/uploader.py index d7b8c12..2be4343 100755 --- a/sololink/px_uploader/uploader.py +++ b/sololink/px_uploader/uploader.py @@ -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