From 8f4dec2c9dd387317bbda48f6a6ef6fff71e04f1 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Mon, 11 Sep 2023 10:31:04 +0200 Subject: [PATCH] Fix possible hang at startup/add printer Remove the ISP leaving part which is *probably* unnecessary 99.99% of the times but may cause a hang when some USB devices are connected. CURA-10972 --- plugins/USBPrinting/AutoDetectBaudJob.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/plugins/USBPrinting/AutoDetectBaudJob.py b/plugins/USBPrinting/AutoDetectBaudJob.py index 1a7187be4d..5a8e455720 100644 --- a/plugins/USBPrinting/AutoDetectBaudJob.py +++ b/plugins/USBPrinting/AutoDetectBaudJob.py @@ -27,14 +27,7 @@ class AutoDetectBaudJob(Job): write_timeout = 3 read_timeout = 3 tries = 2 - - programmer = Stk500v2() serial = None - try: - programmer.connect(self._serial_port) - serial = programmer.leaveISP() - except ispBase.IspError: - programmer.close() for retry in range(tries): for baud_rate in self._all_baud_rates: