소스 검색

Merge pull request #1159 from thinkyhead/lcd_wait_better

M0/M1 Message Fix
nothinman 9 년 전
부모
커밋
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…
취소
저장