Browse Source

Merge pull request #1159 from thinkyhead/lcd_wait_better

M0/M1 Message Fix
nothinman 9 years ago
parent
commit
1977b4490f
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/Marlin_main.cpp

+ 3
- 3
Marlin/Marlin_main.cpp View File

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

Loading…
Cancel
Save