|
@@ -191,11 +191,12 @@ constexpr uint8_t epps = ENCODER_PULSES_PER_STEP;
|
191
|
191
|
|
192
|
192
|
uint8_t MarlinUI::sleep_timeout_minutes; // Initialized by settings.load()
|
193
|
193
|
millis_t MarlinUI::screen_timeout_millis = 0;
|
194
|
|
- void MarlinUI::refresh_screen_timeout() {
|
195
|
|
- screen_timeout_millis = sleep_timeout_minutes ? millis() + sleep_timeout_minutes * 60UL * 1000UL : 0;
|
196
|
|
- sleep_display(false);
|
197
|
|
- }
|
198
|
|
-
|
|
194
|
+ #if DISABLED(TFT_COLOR_UI)
|
|
195
|
+ void MarlinUI::refresh_screen_timeout() {
|
|
196
|
+ screen_timeout_millis = sleep_timeout_minutes ? millis() + sleep_timeout_minutes * 60UL * 1000UL : 0;
|
|
197
|
+ sleep_display(false);
|
|
198
|
+ }
|
|
199
|
+ #endif
|
199
|
200
|
#endif
|
200
|
201
|
|
201
|
202
|
void MarlinUI::init() {
|
|
@@ -1065,7 +1066,7 @@ void MarlinUI::init() {
|
1065
|
1066
|
|
1066
|
1067
|
#if LCD_BACKLIGHT_TIMEOUT_MINS
|
1067
|
1068
|
refresh_backlight_timeout();
|
1068
|
|
- #elif HAS_DISPLAY_SLEEP
|
|
1069
|
+ #elif HAS_DISPLAY_SLEEP && DISABLED(TFT_COLOR_UI)
|
1069
|
1070
|
refresh_screen_timeout();
|
1070
|
1071
|
#endif
|
1071
|
1072
|
|
|
@@ -1178,9 +1179,9 @@ void MarlinUI::init() {
|
1178
|
1179
|
WRITE(LCD_BACKLIGHT_PIN, LOW); // Backlight off
|
1179
|
1180
|
backlight_off_ms = 0;
|
1180
|
1181
|
}
|
1181
|
|
- #elif HAS_DISPLAY_SLEEP
|
|
1182
|
+ #elif HAS_DISPLAY_SLEEP && DISABLED(TFT_COLOR_UI)
|
1182
|
1183
|
if (screen_timeout_millis && ELAPSED(ms, screen_timeout_millis))
|
1183
|
|
- sleep_display();
|
|
1184
|
+ sleep_display(true);
|
1184
|
1185
|
#endif
|
1185
|
1186
|
|
1186
|
1187
|
// Change state of drawing flag between screen updates
|