Browse Source

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 years ago
parent
commit
450b89e63c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/ultralcd.cpp

+ 1
- 1
Marlin/ultralcd.cpp View File

@@ -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…
Cancel
Save