Pārlūkot izejas kodu

Update Display Throttling (#15837)

AnHardt 5 gadus atpakaļ
vecāks
revīzija
4db68d704f
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 4
    2
      Marlin/src/lcd/ultralcd.cpp

+ 4
- 2
Marlin/src/lcd/ultralcd.cpp Parādīt failu

1033
           // If still drawing and there's another page, update max-time and return now.
1033
           // If still drawing and there's another page, update max-time and return now.
1034
           // The nextPage will already be set up on the next call.
1034
           // The nextPage will already be set up on the next call.
1035
           if (drawing_screen && (drawing_screen = u8g.nextPage())) {
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
             return;
1038
             return;
1038
           }
1039
           }
1039
         }
1040
         }
1050
 
1051
 
1051
       // Keeping track of the longest time for an individual LCD update.
1052
       // Keeping track of the longest time for an individual LCD update.
1052
       // Used to do screen throttling when the planner starts to fill up.
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
     #if HAS_LCD_MENU && LCD_TIMEOUT_TO_STATUS
1058
     #if HAS_LCD_MENU && LCD_TIMEOUT_TO_STATUS

Notiek ielāde…
Atcelt
Saglabāt