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

Loading…
Cancel
Save