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/kinematics/hybrid_corexz.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/kinematics/hybrid_corexz.py')
-rw-r--r-- | klippy/kinematics/hybrid_corexz.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/klippy/kinematics/hybrid_corexz.py b/klippy/kinematics/hybrid_corexz.py index 8e5c3d92..041df8d7 100644 --- a/klippy/kinematics/hybrid_corexz.py +++ b/klippy/kinematics/hybrid_corexz.py @@ -42,8 +42,6 @@ class HybridCoreXZKinematics: for s in self.get_steppers(): s.set_trapq(toolhead.get_trapq()) toolhead.register_step_generator(s.generate_steps) - self.printer.register_event_handler("stepper_enable:motor_off", - self._motor_off) # Setup boundary checks max_velocity, max_accel = toolhead.get_max_velocity() self.max_z_velocity = config.getfloat( @@ -97,8 +95,6 @@ class HybridCoreXZKinematics: self.dc_module.home(homing_state) else: self.home_axis(homing_state, axis, self.rails[axis]) - def _motor_off(self, print_time): - self.clear_homing_state((0, 1, 2)) def _check_endstops(self, move): end_pos = move.end_pos for i in (0, 1, 2): |