From bfb34e07017248268474281dc6678a8d141458ad Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 12 Nov 2019 11:41:41 -0500 Subject: stepper_enable: Move motor_off() logic to stepper_enable.py Directly disable all the stepper motors on a global motor_off() from the StepperEnable() class in stepper_enable.py. This simplifies the toolhead and kinematic classes. Signed-off-by: Kevin O'Connor --- klippy/extras/manual_stepper.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'klippy/extras/manual_stepper.py') diff --git a/klippy/extras/manual_stepper.py b/klippy/extras/manual_stepper.py index 73766622..da65a5a4 100644 --- a/klippy/extras/manual_stepper.py +++ b/klippy/extras/manual_stepper.py @@ -35,8 +35,6 @@ class ManualStepper: self.gcode.register_mux_command('MANUAL_STEPPER', "STEPPER", stepper_name, self.cmd_MANUAL_STEPPER, desc=self.cmd_MANUAL_STEPPER_help) - self.printer.register_event_handler( - "toolhead:motor_off", self.handle_motor_off) def sync_print_time(self): toolhead = self.printer.lookup_object('toolhead') print_time = toolhead.get_last_move_time() @@ -114,8 +112,6 @@ class ManualStepper: elif 'MOVE' in params: movepos = self.gcode.get_float('MOVE', params) self.do_move(movepos, speed, accel) - def handle_motor_off(self, print_time): - self.do_enable(0) def load_config_prefix(config): return ManualStepper(config) -- cgit v1.2.3-70-g09d2