Skip to content

Commit

Permalink
🚸 Wake up TFT for some events (MarlinFirmware#22788)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot authored and mh-dm committed May 15, 2022
1 parent d7b9888 commit 0c7b9f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Marlin/src/lcd/marlinui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1444,6 +1444,7 @@ constexpr uint8_t epps = ENCODER_PULSES_PER_STEP;

void MarlinUI::set_alert_status_P(PGM_P const message) {
set_status_P(message, 1);
TERN_(HAS_TOUCH_SLEEP, wakeup_screen());
TERN_(HAS_LCD_MENU, return_to_status());
}

Expand Down Expand Up @@ -1557,6 +1558,7 @@ constexpr uint8_t epps = ENCODER_PULSES_PER_STEP;
defer_status_screen();
#endif

TERN_(HAS_TOUCH_SLEEP, wakeup_screen());
TERN_(HOST_PROMPT_SUPPORT, host_prompt_open(PROMPT_PAUSE_RESUME, PSTR("UI Pause"), PSTR("Resume")));

LCD_MESSAGEPGM(MSG_PRINT_PAUSED);
Expand Down
1 change: 1 addition & 0 deletions Marlin/src/lcd/menu/menu_media.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ void lcd_sd_updir() {
goto_screen(menu_media, sd_encoder_position, sd_top_line, sd_items);
sd_encoder_position = 0xFFFF;
defer_status_screen();
TERN_(HAS_TOUCH_SLEEP, ui.wakeup_screen());
}

#endif
Expand Down

0 comments on commit 0c7b9f4

Please sign in to comment.