🚸 Fix ProUI LCD wake up (2) (#27835)

Followup to #27832
This commit is contained in:
Andrew 2025-05-05 21:19:52 -04:00 committed by GitHub
parent e2583b4f85
commit 67948ad6c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1278,7 +1278,7 @@ void hmiWaitForUser() {
if (!wait_for_user) { if (!wait_for_user) {
switch (checkkey) { switch (checkkey) {
case ID_PrintDone: select_page.reset(); gotoMainMenu(); break; case ID_PrintDone: select_page.reset(); gotoMainMenu(); break;
default: hmiReturnScreen(); break; default: ui.reset_status(true); hmiReturnScreen(); break;
} }
} }
} }
@ -1958,8 +1958,11 @@ void MarlinUI::update() {
#if HAS_LCD_BRIGHTNESS #if HAS_LCD_BRIGHTNESS
void MarlinUI::_set_brightness() { void MarlinUI::_set_brightness() {
if (!backlight) wait_for_user = true;
dwinLCDBrightness(backlight ? brightness : 0); dwinLCDBrightness(backlight ? brightness : 0);
if (!backlight)
wait_for_user = true;
else if (checkkey != ID_PrintDone)
wait_for_user = false;
} }
#endif #endif