Skip to content

Commit

Permalink
Fix "'DISPLAY_SLEEP_MINUTES' was not declared in this scope" error
Browse files Browse the repository at this point in the history
  • Loading branch information
thisiskeithb committed Jan 29, 2024
1 parent 7a4d601 commit c059245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/lcd/marlinui.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class MarlinUI {
#if ENABLED(EDITABLE_DISPLAY_TIMEOUT)
static uint8_t sleep_timeout_minutes;
#else
static constexpr uint8_t sleep_timeout_minutes = DISPLAY_SLEEP_MINUTES;
static constexpr uint8_t sleep_timeout_minutes = TERN(TOUCH_SCREEN, TOUCH_IDLE_SLEEP_MINS, DISPLAY_SLEEP_MINUTES);
#endif
static constexpr uint8_t sleep_timeout_min = 0;
static constexpr uint8_t sleep_timeout_max = 99;
Expand Down

0 comments on commit c059245

Please sign in to comment.