aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/stepper_enable.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2025-01-10 11:31:14 -0500
committerKevin O'Connor <kevin@koconnor.net>2025-01-21 18:58:23 -0500
commitc72d73ec450119b5fbe13d98409037a21ae97101 (patch)
tree6f25201d46778109e972a36448a01c42a727c0fa /klippy/extras/stepper_enable.py
parent5fe333934d678a8dc3f8cdbddcf3ab828da5503e (diff)
downloadkutter-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.py1
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):