From f50e054bd069a0e7ae9455dfa5ddfc6894c4789e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 10 Nov 2019 11:55:53 -0500 Subject: 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 --- klippy/stepper.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'klippy/stepper.py') 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 -- cgit v1.2.3-70-g09d2