Fix M118 parameter handling

Fix #10388
This commit is contained in:
Scott Lahteine
2018-04-12 19:00:16 -05:00
parent 8db9b800e7
commit 2edc13a0e2
2 changed files with 13 additions and 4 deletions

View File

@@ -152,7 +152,7 @@ void GCodeParser::parse(char *p) {
#endif
// Only use string_arg for these M codes
if (letter == 'M') switch (codenum) { case 23: case 28: case 30: case 117: case 928: string_arg = p; return; default: break; }
if (letter == 'M') switch (codenum) { case 23: case 28: case 30: case 117: case 118: case 928: string_arg = p; return; default: break; }
#if ENABLED(DEBUG_GCODE_PARSER)
const bool debug = codenum == 800;