mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-28 02:33:58 -04:00
waf: cope with serial exceptions in px_uploader.py
this allows the loader to continue on a USB removal/reinsert
This commit is contained in:
parent
daa9eec836
commit
e3f4860666
@ -563,7 +563,10 @@ class uploader(object):
|
||||
if self.baudrate_flightstack_idx >= len(self.baudrate_flightstack):
|
||||
return False
|
||||
|
||||
self.port.baudrate = self.baudrate_flightstack[self.baudrate_flightstack_idx]
|
||||
try:
|
||||
self.port.baudrate = self.baudrate_flightstack[self.baudrate_flightstack_idx]
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user