diff --git a/scanner.py b/scanner.py index 58c907b..323561a 100644 --- a/scanner.py +++ b/scanner.py @@ -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():