瀏覽代碼

Merge pull request #1159 from thinkyhead/lcd_wait_better

M0/M1 Message Fix
nothinman 10 年之前
父節點
當前提交
1977b4490f
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      Marlin/Marlin_main.cpp

+ 3
- 3
Marlin/Marlin_main.cpp 查看文件

@@ -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…
取消
儲存