Fix spacing in gcode.cpp

Followup to #6940
This commit is contained in:
Scott Lahteine 2017-06-02 21:45:51 -05:00
parent c2c8aafda2
commit ba1706a265

View File

@ -184,7 +184,7 @@ void GCodeParser::parse(char *p) {
if (PARAM_TEST) { if (PARAM_TEST) {
while (*p == ' ') p++; // skip spaces vetween parameters & values while (*p == ' ') p++; // Skip spaces between 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)
@ -222,8 +222,8 @@ void GCodeParser::parse(char *p) {
} }
if (!WITHIN(*p, 'A', 'Z')) { if (!WITHIN(*p, 'A', 'Z')) {
while (*p && NUMERIC(*p)) p++; // Skip over the value section of a 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
} }
} }
} }