aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/stepper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-11-10 11:55:53 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-11-10 11:55:53 -0500
commitf50e054bd069a0e7ae9455dfa5ddfc6894c4789e (patch)
tree339a8ace3f3272629321eb51bd7c8c70c459700a /klippy/stepper.py
parent064804b68867a83fd77f687b2f504069b74de771 (diff)
downloadkutter-f50e054bd069a0e7ae9455dfa5ddfc6894c4789e.tar.gz
kutter-f50e054bd069a0e7ae9455dfa5ddfc6894c4789e.tar.xz
kutter-f50e054bd069a0e7ae9455dfa5ddfc6894c4789e.zip
stepper_enable: Add new extras module for stepper enable line tracking
Move the M18/M84 command handling from gcode.py to new stepper_enable module. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/stepper.py')
-rw-r--r--klippy/stepper.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/stepper.py b/klippy/stepper.py
index 5c72649e..ebeae89b 100644
--- a/klippy/stepper.py
+++ b/klippy/stepper.py
@@ -70,6 +70,8 @@ class PrinterStepper:
mcu_stepper.setup_dir_pin(dir_pin_params)
step_dist = config.getfloat('step_distance', above=0.)
mcu_stepper.setup_step_distance(step_dist)
+ # Enable pin handling
+ stepper_enable = printer.try_load_module(config, 'stepper_enable')
mcu_stepper.add_active_callback(self._stepper_active)
self.enable = lookup_enable_pin(ppins, config.get('enable_pin', None))
# Register STEPPER_BUZZ command