Skip to content

Commit

Permalink
Fix possible hang at startup/add printer
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wawanbreton committed Sep 11, 2023
1 parent 95530b5 commit 8f4dec2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions plugins/USBPrinting/AutoDetectBaudJob.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,7 @@ def run(self) -> None:
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:
Expand Down

0 comments on commit 8f4dec2

Please sign in to comment.