mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00: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,9 +345,9 @@ 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
|
||||
|
||||
finally:
|
||||
self.port.baudrate = self.baudrate_bootloader
|
||||
|
||||
# send the GET_DEVICE command and wait for an info parameter
|
||||
|
||||
Reference in New Issue
Block a user