diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-11-12 11:41:41 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-11-12 17:32:18 -0500 |
commit | bfb34e07017248268474281dc6678a8d141458ad (patch) | |
tree | 70ea938b8c9686bf3909e4b4a5c1499058af218d /klippy/extras/manual_stepper.py | |
parent | f50e054bd069a0e7ae9455dfa5ddfc6894c4789e (diff) | |
download | kutter-bfb34e07017248268474281dc6678a8d141458ad.tar.gz kutter-bfb34e07017248268474281dc6678a8d141458ad.tar.xz kutter-bfb34e07017248268474281dc6678a8d141458ad.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/manual_stepper.py')
-rw-r--r-- | klippy/extras/manual_stepper.py | 4 |
1 files changed, 0 insertions, 4 deletions
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) |