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:
David Sidrane
2021-02-05 10:38:54 -08:00
committed by Lorenz Meier
parent d4bea8323f
commit c1435c744c
+3 -3
View File
@@ -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):