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/gcode.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'klippy/gcode.py') diff --git a/klippy/gcode.py b/klippy/gcode.py index ab5cc012..82e9a303 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -475,7 +475,7 @@ class GCodeParser: key_param, key)) values[key_param](params) all_handlers = [ - 'G1', 'G4', 'G28', 'M18', 'M400', + 'G1', 'G4', 'G28', 'M400', 'G20', 'M82', 'M83', 'G90', 'G91', 'G92', 'M114', 'M220', 'M221', 'SET_GCODE_OFFSET', 'M206', 'SAVE_GCODE_STATE', 'RESTORE_GCODE_STATE', 'M105', 'M104', 'M109', 'M140', 'M190', 'M106', 'M107', @@ -536,10 +536,6 @@ class GCodeParser: for axis in homing_state.get_axes(): self.base_position[axis] = self.homing_position[axis] self.reset_last_position() - cmd_M18_aliases = ["M84"] - def cmd_M18(self, params): - # Turn off motors - self.toolhead.motor_off() def cmd_M400(self, params): # Wait for current moves to finish self.toolhead.wait_moves() -- cgit v1.2.3-70-g09d2