Browse Source

Fix LCD throttle issue (#18055)

Fixes #18044
Giuliano Zaro 5 years ago
parent
commit
0b0ba7dcf6
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/lcd/ultralcd.cpp

+ 1
- 1
Marlin/src/lcd/ultralcd.cpp View File

881
     // Instead of tracking changes just redraw the Status Screen once per second.
881
     // Instead of tracking changes just redraw the Status Screen once per second.
882
     if (on_status_screen() && !lcd_status_update_delay--) {
882
     if (on_status_screen() && !lcd_status_update_delay--) {
883
       lcd_status_update_delay = TERN(HAS_GRAPHICAL_LCD, 12, 9);
883
       lcd_status_update_delay = TERN(HAS_GRAPHICAL_LCD, 12, 9);
884
-      max_display_update_time--;
884
+      if (max_display_update_time) max_display_update_time--;  // Be sure never go to a very big number
885
       refresh(LCDVIEW_REDRAW_NOW);
885
       refresh(LCDVIEW_REDRAW_NOW);
886
     }
886
     }
887
 
887
 

Loading…
Cancel
Save