From ebda4663c3a3cc7a9aab03e50d1a0bd255809582 Mon Sep 17 00:00:00 2001 From: Bob-the-Kuhn Date: Fri, 2 Jun 2017 19:22:40 -0500 Subject: [PATCH] for discusion --- Marlin/gcode.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Marlin/gcode.cpp b/Marlin/gcode.cpp index caceb09bdf..713b089108 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 + } } }