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/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/stepper.py')
-rw-r--r-- | klippy/stepper.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/klippy/stepper.py b/klippy/stepper.py index ebeae89b..2f403a0a 100644 --- a/klippy/stepper.py +++ b/klippy/stepper.py @@ -72,6 +72,7 @@ class PrinterStepper: mcu_stepper.setup_step_distance(step_dist) # Enable pin handling stepper_enable = printer.try_load_module(config, 'stepper_enable') + stepper_enable.register_stepper(self) mcu_stepper.add_active_callback(self._stepper_active) self.enable = lookup_enable_pin(ppins, config.get('enable_pin', None)) # Register STEPPER_BUZZ command |