🩹 Fix LCD_BACKLIGHT_TIMEOUT compile (#24463)

This commit is contained in:
Jason Smith
2022-07-07 21:43:56 -07:00
committed by Scott Lahteine
parent d9ecbdcdbb
commit 79a332b57e
5 changed files with 13 additions and 12 deletions

View File

@ -32,10 +32,6 @@
#include "tft_io/touch_calibration.h"
#endif
#if ANY(HAS_MARLINUI_MENU, ULTIPANEL_FEEDMULTIPLY, SOFT_RESET_ON_KILL)
#define HAS_ENCODER_ACTION 1
#endif
#if E_MANUAL > 1
#define MULTI_E_MANUAL 1
#endif
@ -271,8 +267,8 @@ public:
#endif
#if LCD_BACKLIGHT_TIMEOUT
#define LCD_BKL_TIMEOUT_MIN 1
#define LCD_BKL_TIMEOUT_MAX (60*60*18) // 18 hours max within uint16_t
#define LCD_BKL_TIMEOUT_MIN 1u
#define LCD_BKL_TIMEOUT_MAX UINT16_MAX // Slightly more than 18 hours
static uint16_t lcd_backlight_timeout;
static millis_t backlight_off_ms;
static void refresh_backlight_timeout();