diff --git a/Marlin/gcode.cpp b/Marlin/gcode.cpp index caceb09bd..713b08910 100644 --- a/Marlin/gcode.cpp +++ b/Marlin/gcode.cpp @@ -220,8 +220,10 @@ void GCodeParser::parse(char *p) { #endif } - while (*p && *p != ' ') p++; // Skip over the parameter - while (*p == ' ') p++; // Skip over all spaces + if (!WITHIN(*p, 'A', 'Z')) { + while (*p && NUMERIC(*p)) p++; // Skip over the parameter + while (*p == ' ') p++; // Skip over all spaces + } } }