From 00e6d11dfab35a83a2c1bc61215eabb057369f80 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Fri, 1 Jan 2021 13:47:46 +0100 Subject: [PATCH] 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. --- Tools/px_uploader.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tools/px_uploader.py b/Tools/px_uploader.py index a12c35a76c..30d2fad778 100755 --- a/Tools/px_uploader.py +++ b/Tools/px_uploader.py @@ -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