Skip over spaces first

This commit is contained in:
Scott Lahteine 2014-11-28 08:09:28 -08:00
parent 662fe8288b
commit 7562183efc

View file

@ -1875,10 +1875,10 @@ void process_commands()
codenum = code_value() * 1000; // seconds to wait codenum = code_value() * 1000; // seconds to wait
hasS = codenum > 0; hasS = codenum > 0;
} }
starpos = strchr(src, '*');
if (starpos != NULL) *(starpos) = '\0';
while (*src == ' ') ++src;
if (!hasP && !hasS && *src != '\0') { if (!hasP && !hasS && *src != '\0') {
starpos = strchr(src, '*');
if (starpos != NULL) *(starpos) = '\0';
while (*src == ' ') ++src;
lcd_setstatus(src); lcd_setstatus(src);
} else { } else {
LCD_MESSAGEPGM(MSG_USERWAIT); LCD_MESSAGEPGM(MSG_USERWAIT);