mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 02:49:04 +08:00
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
This commit is contained in:
parent
95530b5779
commit
8f4dec2c9d
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user