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:
Arksine 2018-08-21 20:59:51 -04:00 committed by KevinOConnor
parent 65f0fd6238
commit e94f3b7827
1 changed files with 6 additions and 0 deletions

View File

@ -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