diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2025-01-10 11:31:14 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2025-01-21 18:58:23 -0500 |
commit | c72d73ec450119b5fbe13d98409037a21ae97101 (patch) | |
tree | 6f25201d46778109e972a36448a01c42a727c0fa /klippy/extras/stepper_enable.py | |
parent | 5fe333934d678a8dc3f8cdbddcf3ab828da5503e (diff) | |
download | kutter-c72d73ec450119b5fbe13d98409037a21ae97101.tar.gz kutter-c72d73ec450119b5fbe13d98409037a21ae97101.tar.xz kutter-c72d73ec450119b5fbe13d98409037a21ae97101.zip |
stepper_enable: Directly call clear_homing_state() on motor off event
Call clear_homing_state() on each motor off event. This simplifies
the kinematic classes as they no longer need to register and handle
the motor_off event.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/stepper_enable.py')
-rw-r--r-- | klippy/extras/stepper_enable.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/klippy/extras/stepper_enable.py b/klippy/extras/stepper_enable.py index 621ff700..4e8f3bbb 100644 --- a/klippy/extras/stepper_enable.py +++ b/klippy/extras/stepper_enable.py @@ -94,6 +94,7 @@ class PrinterStepperEnable: print_time = toolhead.get_last_move_time() for el in self.enable_lines.values(): el.motor_disable(print_time) + toolhead.get_kinematics().clear_homing_state((0, 1, 2)) self.printer.send_event("stepper_enable:motor_off", print_time) toolhead.dwell(DISABLE_STALL_TIME) def motor_debug_enable(self, stepper, enable): |