mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +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()
|
self.port.close()
|
||||||
|
|
||||||
def send_reboot(self):
|
def send_reboot(self):
|
||||||
|
try:
|
||||||
# try reboot via NSH first
|
# try reboot via NSH first
|
||||||
self.__send(uploader.NSH_INIT)
|
self.__send(uploader.NSH_INIT)
|
||||||
self.__send(uploader.NSH_REBOOT_BL)
|
self.__send(uploader.NSH_REBOOT_BL)
|
||||||
@@ -378,6 +379,8 @@ class uploader(object):
|
|||||||
# then try MAVLINK command
|
# then try MAVLINK command
|
||||||
self.__send(uploader.MAVLINK_REBOOT_ID1)
|
self.__send(uploader.MAVLINK_REBOOT_ID1)
|
||||||
self.__send(uploader.MAVLINK_REBOOT_ID0)
|
self.__send(uploader.MAVLINK_REBOOT_ID0)
|
||||||
|
except:
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user