소스 검색

Negative times are unlikly

While bunting an other bug I stumbled across:
ultralcd.cpp:1250: warning: comparison between signed and unsigned
integer expressions
Changed to the type of lcd_next_update_millis.
AnHardt 10 년 전
부모
커밋
450b89e63c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      Marlin/ultralcd.cpp

+ 1
- 1
Marlin/ultralcd.cpp 파일 보기

@@ -1246,7 +1246,7 @@ void lcd_update() {
1246 1246
     }
1247 1247
   #endif//CARDINSERTED
1248 1248
 
1249
-  long ms = millis();
1249
+  uint32_t ms = millis();
1250 1250
   if (ms > lcd_next_update_millis) {
1251 1251
 
1252 1252
     #ifdef ULTIPANEL

Loading…
취소
저장