Skip to content

Commit

Permalink
Timeout error fix (#74)
Browse files Browse the repository at this point in the history
* timeout error fix

* removed return
  • Loading branch information
krautech authored Nov 19, 2024
1 parent 083b67c commit 06a5678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2520,7 +2520,7 @@ def home_wait(self, home_end_time):
ffi_lib.trdispatch_stop(self._trdispatch)
res = [trsync.stop() for trsync in self._trsyncs]
if any([r == etrsync.REASON_COMMS_TIMEOUT for r in res]):
return -1.0
raise self.scanner.printer.command_error("Communication timeout during homing")
if res[0] != etrsync.REASON_ENDSTOP_HIT:
return 0.0
if self._mcu.is_fileoutput():
Expand Down

0 comments on commit 06a5678

Please sign in to comment.