PX Uploader: Disable windowed mode

The windowed mode has been added for Windows targets originally. It gets very often incorrectly detected and slows down flashing considerably. This even applies to serial links. We are disabling it now in most circumstances.
This commit is contained in:
Lorenz Meier 2021-01-01 13:47:46 +01:00
parent 95dd2f7e8d
commit 00e6d11dfa
1 changed files with 3 additions and 2 deletions

View File

@ -344,8 +344,9 @@ class uploader(object):
try:
self.__getSync(False)
except:
# if it fails we are on a real Serial Port
self.ackWindowedMode = True
# if it fails we are on a real serial port - only leave this enabled on Windows
if _platform.system() == 'Windows':
self.ackWindowedMode = True
self.port.baudrate = self.baudrate_bootloader