allow space between parameter and value

2.0.x
Bob-the-Kuhn 8 years ago
parent ebda4663c3
commit 2130f10de8

@ -184,6 +184,7 @@ void GCodeParser::parse(char *p) {
if (PARAM_TEST) {
while (*p == ' ') p++; // skip spaces vetween parameters & values
const bool has_num = DECIMAL_SIGNED(*p); // The parameter has a number [-+0-9.]
#if ENABLED(DEBUG_GCODE_PARSER)
@ -221,7 +222,7 @@ void GCodeParser::parse(char *p) {
}
if (!WITHIN(*p, 'A', 'Z')) {
while (*p && NUMERIC(*p)) p++; // Skip over the parameter
while (*p && NUMERIC(*p)) p++; // Skip over the value section of a parameter
while (*p == ' ') p++; // Skip over all spaces
}
}

Loading…
Cancel
Save