mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 11:59:17 +08:00
Python uploader: Ignore exceptions when sending reboot tries
This commit is contained in:
@@ -370,6 +370,7 @@ class uploader(object):
|
||||
self.port.close()
|
||||
|
||||
def send_reboot(self):
|
||||
try:
|
||||
# try reboot via NSH first
|
||||
self.__send(uploader.NSH_INIT)
|
||||
self.__send(uploader.NSH_REBOOT_BL)
|
||||
@@ -378,6 +379,8 @@ class uploader(object):
|
||||
# then try MAVLINK command
|
||||
self.__send(uploader.MAVLINK_REBOOT_ID1)
|
||||
self.__send(uploader.MAVLINK_REBOOT_ID0)
|
||||
except:
|
||||
return
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user