Skip to main content
Sign in
Snippets Groups Projects
Commit 2130f10d authored by Bob-the-Kuhn's avatar Bob-the-Kuhn
Browse files

allow space between parameter and value

parent ebda4663
No related branches found
No related tags found
No related merge requests found
...@@ -184,6 +184,7 @@ void GCodeParser::parse(char *p) { ...@@ -184,6 +184,7 @@ void GCodeParser::parse(char *p) {
if (PARAM_TEST) { 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.] const bool has_num = DECIMAL_SIGNED(*p); // The parameter has a number [-+0-9.]
#if ENABLED(DEBUG_GCODE_PARSER) #if ENABLED(DEBUG_GCODE_PARSER)
...@@ -221,7 +222,7 @@ void GCodeParser::parse(char *p) { ...@@ -221,7 +222,7 @@ void GCodeParser::parse(char *p) {
} }
if (!WITHIN(*p, 'A', 'Z')) { 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 while (*p == ' ') p++; // Skip over all spaces
} }
} }
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment