From 414951e42cdc49f6e3091978d1822bfb1b636cbd Mon Sep 17 00:00:00 2001 From: Andrew <18502096+classicrocker883@users.noreply.github.com> Date: Sat, 3 May 2025 21:08:27 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Fix=20ProUI=20LCD=20wake=20up=20?= =?UTF-8?q?(#27832)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/lcd/e3v2/proui/dwin.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Marlin/src/lcd/e3v2/proui/dwin.cpp b/Marlin/src/lcd/e3v2/proui/dwin.cpp index 2b6087385e..aa77704786 100644 --- a/Marlin/src/lcd/e3v2/proui/dwin.cpp +++ b/Marlin/src/lcd/e3v2/proui/dwin.cpp @@ -1957,7 +1957,10 @@ void MarlinUI::update() { } #if HAS_LCD_BRIGHTNESS - void MarlinUI::_set_brightness() { dwinLCDBrightness(backlight ? brightness : 0); } + void MarlinUI::_set_brightness() { + if (!backlight) wait_for_user = true; + dwinLCDBrightness(backlight ? brightness : 0); + } #endif void MarlinUI::kill_screen(FSTR_P const lcd_error, FSTR_P const) { @@ -2273,7 +2276,7 @@ void setMoveZ() { hmiValue.axis = Z_AXIS; setPFloatOnClick(Z_MIN_POS, Z_MAX_POS, void applyBrightness() { ui.set_brightness(menuData.value); } void liveBrightness() { dwinLCDBrightness(menuData.value); } void setBrightness() { setIntOnClick(LCD_BRIGHTNESS_MIN, LCD_BRIGHTNESS_MAX, ui.brightness, applyBrightness, liveBrightness); } - void turnOffBacklight() { hmiSaveProcessID(ID_WaitResponse); ui.set_brightness(0); dwinRedrawScreen(); } + void turnOffBacklight() { ui.set_brightness(0); dwinRedrawScreen(); } #endif #if ENABLED(CASE_LIGHT_MENU)