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. 6
      Tools/px_uploader.py

6
Tools/px_uploader.py

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

Loading…
Cancel
Save