mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-08 23:46:25 -06:00
serialhdl: Eventually timeout connect attempt
If the serial connection has not been successful after 2.5 minutes then report an error. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
ebb375fee9
commit
d98bbc772c
2 changed files with 11 additions and 5 deletions
|
@ -614,8 +614,11 @@ class MCU:
|
|||
and not os.path.exists(self._serialport)):
|
||||
# Try toggling usb power
|
||||
self._check_restart("enable power")
|
||||
self._serial.connect()
|
||||
self._clocksync.connect(self._serial)
|
||||
try:
|
||||
self._serial.connect()
|
||||
self._clocksync.connect(self._serial)
|
||||
except serialhdl.error as e:
|
||||
raise error(str(e))
|
||||
msgparser = self._serial.get_msgparser()
|
||||
name = self._name
|
||||
log_info = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue