aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/probe_eddy_current.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/extras/probe_eddy_current.py')
-rw-r--r--klippy/extras/probe_eddy_current.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/klippy/extras/probe_eddy_current.py b/klippy/extras/probe_eddy_current.py
index 8b9d705b..636c800d 100644
--- a/klippy/extras/probe_eddy_current.py
+++ b/klippy/extras/probe_eddy_current.py
@@ -243,8 +243,9 @@ class EddyEndstopWrapper:
trigger_time = self._sensor_helper.clear_home()
self._stop_measurements(is_home=True)
res = self._dispatch.stop()
- if res == mcu.MCU_trsync.REASON_COMMS_TIMEOUT:
- return -1.
+ if res >= mcu.MCU_trsync.REASON_COMMS_TIMEOUT:
+ raise self._printer.command_error(
+ "Communication timeout during homing")
if res != mcu.MCU_trsync.REASON_ENDSTOP_HIT:
return 0.
if self._mcu.is_fileoutput():