Skip to content

Commit c059245

Browse files
committed
Fix "'DISPLAY_SLEEP_MINUTES' was not declared in this scope" error
Follow up to MarlinFirmware#26517
1 parent 7a4d601 commit c059245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Marlin/src/lcd/marlinui.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ class MarlinUI {
286286
#if ENABLED(EDITABLE_DISPLAY_TIMEOUT)
287287
static uint8_t sleep_timeout_minutes;
288288
#else
289-
static constexpr uint8_t sleep_timeout_minutes = DISPLAY_SLEEP_MINUTES;
289+
static constexpr uint8_t sleep_timeout_minutes = TERN(TOUCH_SCREEN, TOUCH_IDLE_SLEEP_MINS, DISPLAY_SLEEP_MINUTES);
290290
#endif
291291
static constexpr uint8_t sleep_timeout_min = 0;
292292
static constexpr uint8_t sleep_timeout_max = 99;

0 commit comments

Comments
 (0)