From bc29ee1c6d1fbd99a9d0c6db6b4419bbc8f8a7c3 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 2 Apr 2021 13:42:25 -0400 Subject: homing: Check for failures during multi-endstop homing If any endstop reports a failure, then stop homing on all endstops. Signed-off-by: Kevin O'Connor --- klippy/mcu.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'klippy/mcu.py') diff --git a/klippy/mcu.py b/klippy/mcu.py index bd7267ad..1b77aff7 100644 --- a/klippy/mcu.py +++ b/klippy/mcu.py @@ -84,7 +84,9 @@ class MCU_trsync: tc = self._trigger_completion if tc is not None: self._trigger_completion = None - self._reactor.async_complete(tc, True) + reason = params['trigger_reason'] + is_failure = (reason == self.REASON_COMMS_TIMEOUT) + self._reactor.async_complete(tc, is_failure) elif self._home_end_clock is not None: clock = self._mcu.clock32_to_clock64(params['clock']) if clock >= self._home_end_clock: -- cgit v1.2.3-70-g09d2