AnHardt пре 5 година
родитељ
комит
4db68d704f
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4
    2
      Marlin/src/lcd/ultralcd.cpp

+ 4
- 2
Marlin/src/lcd/ultralcd.cpp Прегледај датотеку

@@ -1033,7 +1033,8 @@ void MarlinUI::update() {
1033 1033
           // If still drawing and there's another page, update max-time and return now.
1034 1034
           // The nextPage will already be set up on the next call.
1035 1035
           if (drawing_screen && (drawing_screen = u8g.nextPage())) {
1036
-            NOLESS(max_display_update_time, millis() - ms);
1036
+            if (on_status_screen())
1037
+              NOLESS(max_display_update_time, millis() - ms);
1037 1038
             return;
1038 1039
           }
1039 1040
         }
@@ -1050,7 +1051,8 @@ void MarlinUI::update() {
1050 1051
 
1051 1052
       // Keeping track of the longest time for an individual LCD update.
1052 1053
       // Used to do screen throttling when the planner starts to fill up.
1053
-      NOLESS(max_display_update_time, millis() - ms);
1054
+      if (on_status_screen())
1055
+        NOLESS(max_display_update_time, millis() - ms);
1054 1056
     }
1055 1057
 
1056 1058
     #if HAS_LCD_MENU && LCD_TIMEOUT_TO_STATUS

Loading…
Откажи
Сачувај