Skip to content

Commit

Permalink
Merge pull request #16709 from Ultimaker/CURA-10972_fix_hang_serial
Browse files Browse the repository at this point in the history
Fix possible hang at startup/add printer
  • Loading branch information
nallath authored Sep 20, 2023
2 parents 5e1e6e2 + 03d8c61 commit b56ad7d
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 b56ad7d

Please sign in to comment.