Browse Source

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
release/1.12
David Sidrane 4 years ago committed by Lorenz Meier
parent
commit
c1435c744c
  1. 4
      Tools/px_uploader.py

4
Tools/px_uploader.py

@ -345,9 +345,9 @@ class uploader(object): @@ -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

Loading…
Cancel
Save