From 7562183efc719b25482b7e82bee56c1a3bcb8bbf Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 28 Nov 2014 08:09:28 -0800 Subject: [PATCH] Skip over spaces first --- Marlin/Marlin_main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 5e49b89a8..616b7a190 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -1875,10 +1875,10 @@ void process_commands() codenum = code_value() * 1000; // seconds to wait hasS = codenum > 0; } + starpos = strchr(src, '*'); + if (starpos != NULL) *(starpos) = '\0'; + while (*src == ' ') ++src; if (!hasP && !hasS && *src != '\0') { - starpos = strchr(src, '*'); - if (starpos != NULL) *(starpos) = '\0'; - while (*src == ' ') ++src; lcd_setstatus(src); } else { LCD_MESSAGEPGM(MSG_USERWAIT);