mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-02-17 06:48:05 +00:00
🚸 Wake up TFT for some events (#22788)
This commit is contained in:
parent
c88e85c939
commit
89125cd32e
2 changed files with 3 additions and 0 deletions
|
@ -1444,6 +1444,7 @@ constexpr uint8_t epps = ENCODER_PULSES_PER_STEP;
|
||||||
|
|
||||||
void MarlinUI::set_alert_status_P(PGM_P const message) {
|
void MarlinUI::set_alert_status_P(PGM_P const message) {
|
||||||
set_status_P(message, 1);
|
set_status_P(message, 1);
|
||||||
|
TERN_(HAS_TOUCH_SLEEP, wakeup_screen());
|
||||||
TERN_(HAS_LCD_MENU, return_to_status());
|
TERN_(HAS_LCD_MENU, return_to_status());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1557,6 +1558,7 @@ constexpr uint8_t epps = ENCODER_PULSES_PER_STEP;
|
||||||
defer_status_screen();
|
defer_status_screen();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
TERN_(HAS_TOUCH_SLEEP, wakeup_screen());
|
||||||
TERN_(HOST_PROMPT_SUPPORT, host_prompt_open(PROMPT_PAUSE_RESUME, PSTR("UI Pause"), PSTR("Resume")));
|
TERN_(HOST_PROMPT_SUPPORT, host_prompt_open(PROMPT_PAUSE_RESUME, PSTR("UI Pause"), PSTR("Resume")));
|
||||||
|
|
||||||
LCD_MESSAGEPGM(MSG_PRINT_PAUSED);
|
LCD_MESSAGEPGM(MSG_PRINT_PAUSED);
|
||||||
|
|
|
@ -48,6 +48,7 @@ void lcd_sd_updir() {
|
||||||
goto_screen(menu_media, sd_encoder_position, sd_top_line, sd_items);
|
goto_screen(menu_media, sd_encoder_position, sd_top_line, sd_items);
|
||||||
sd_encoder_position = 0xFFFF;
|
sd_encoder_position = 0xFFFF;
|
||||||
defer_status_screen();
|
defer_status_screen();
|
||||||
|
TERN_(HAS_TOUCH_SLEEP, ui.wakeup_screen());
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue