From ba1706a2651ecd1c0b3e2991d850c9a4c0c3b76c Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 2 Jun 2017 21:45:51 -0500 Subject: [PATCH] Fix spacing in gcode.cpp Followup to #6940 --- Marlin/gcode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/gcode.cpp b/Marlin/gcode.cpp index 02aaf68a3a..a2f5dcfb10 100644 --- a/Marlin/gcode.cpp +++ b/Marlin/gcode.cpp @@ -184,7 +184,7 @@ void GCodeParser::parse(char *p) { 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.] #if ENABLED(DEBUG_GCODE_PARSER) @@ -222,8 +222,8 @@ void GCodeParser::parse(char *p) { } if (!WITHIN(*p, 'A', 'Z')) { - while (*p && NUMERIC(*p)) p++; // Skip over the value section of a parameter - while (*p == ' ') p++; // Skip over all spaces + while (*p && NUMERIC(*p)) p++; // Skip over the value section of a parameter + while (*p == ' ') p++; // Skip over all spaces } } }