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>
This commit is contained in:
parent
65f0fd6238
commit
e94f3b7827
|
@ -393,6 +393,12 @@ class GCodeParser:
|
||||||
# Tn command has to be handled specially
|
# Tn command has to be handled specially
|
||||||
self.cmd_Tn(params)
|
self.cmd_Tn(params)
|
||||||
return
|
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,))
|
self.respond_info('Unknown command:"%s"' % (cmd,))
|
||||||
def cmd_Tn(self, params):
|
def cmd_Tn(self, params):
|
||||||
# Select Tool
|
# Select Tool
|
||||||
|
|
Loading…
Reference in New Issue