From 89835940f70ff4b9f19a77d14fdaeefa86d777db Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 16 Jul 2018 10:06:30 -0400 Subject: query_endstops: Move QUERY_ENDSTOP command to it own extras/ module Signed-off-by: Kevin O'Connor --- klippy/gcode.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'klippy/gcode.py') diff --git a/klippy/gcode.py b/klippy/gcode.py index e9c20055..47a8b2d0 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -425,7 +425,7 @@ class GCodeParser: 'G20', 'M82', 'M83', 'G90', 'G91', 'G92', 'M114', 'M220', 'M221', 'SET_GCODE_OFFSET', 'M206', 'M105', 'M104', 'M109', 'M140', 'M190', 'M106', 'M107', - 'M112', 'M115', 'IGNORE', 'QUERY_ENDSTOPS', 'GET_POSITION', + 'M112', 'M115', 'IGNORE', 'GET_POSITION', 'RESTART', 'FIRMWARE_RESTART', 'ECHO', 'STATUS', 'HELP'] # G-Code movement commands cmd_G1_aliases = ['G0'] @@ -596,13 +596,6 @@ class GCodeParser: def cmd_IGNORE(self, params): # Commands that are just silently accepted pass - cmd_QUERY_ENDSTOPS_help = "Report on the status of each endstop" - cmd_QUERY_ENDSTOPS_aliases = ["M119"] - def cmd_QUERY_ENDSTOPS(self, params): - # Get Endstop Status - res = homing.query_endstops(self.toolhead) - self.respond(" ".join(["%s:%s" % (name, ["open", "TRIGGERED"][not not t]) - for name, t in res])) cmd_GET_POSITION_when_not_ready = True def cmd_GET_POSITION(self, params): if self.toolhead is None: -- cgit v1.2.3-70-g09d2