mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 13:02:25 +08:00
px_uploader:Fixes breakage for real serial ports caused by 00e6d11
The code was pitching an exception. It was invaild. That then left the baud rate AFU
This commit is contained in:
committed by
Lorenz Meier
parent
d4bea8323f
commit
c1435c744c
@@ -345,10 +345,10 @@ class uploader(object):
|
||||
self.__getSync(False)
|
||||
except:
|
||||
# if it fails we are on a real serial port - only leave this enabled on Windows
|
||||
if _platform.system() == 'Windows':
|
||||
if sys.platform.startswith('win'):
|
||||
self.ackWindowedMode = True
|
||||
|
||||
self.port.baudrate = self.baudrate_bootloader
|
||||
finally:
|
||||
self.port.baudrate = self.baudrate_bootloader
|
||||
|
||||
# send the GET_DEVICE command and wait for an info parameter
|
||||
def __getInfo(self, param):
|
||||
|
||||
Reference in New Issue
Block a user