aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/gcode.py
diff options
context:
space:
mode:
authorArksine <arksine.code@gmail.com>2018-08-21 20:59:51 -0400
committerKevinOConnor <kevin@koconnor.net>2018-08-22 12:53:42 -0400
commite94f3b78271cdff6889628a76951eef9f3c8cecf (patch)
tree2d0a2f42544b76250fc68a17d5bb5c065124add7 /klippy/gcode.py
parent65f0fd6238690b4c37da4d6f6c094e3ac6ad98ab (diff)
downloadkutter-e94f3b78271cdff6889628a76951eef9f3c8cecf.tar.gz
kutter-e94f3b78271cdff6889628a76951eef9f3c8cecf.tar.xz
kutter-e94f3b78271cdff6889628a76951eef9f3c8cecf.zip
gcode: M117 fix
Resolves issue where M117 is not correctly executed when the message begins with numeric or special character. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r--klippy/gcode.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py
index 8fa6813c..4158007f 100644
--- a/klippy/gcode.py
+++ b/klippy/gcode.py
@@ -393,6 +393,12 @@ class GCodeParser:
# Tn command has to be handled specially
self.cmd_Tn(params)
return
+ elif cmd.startswith("M117 "):
+ # Handle M117 gcode with numeric and special characters
+ handler = self.gcode_handlers.get("M117", None)
+ if handler is not None:
+ handler(params)
+ return
self.respond_info('Unknown command:"%s"' % (cmd,))
def cmd_Tn(self, params):
# Select Tool