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 Darred committed Dec 1, 2021
1 parent f314cca commit a6da1dd
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 @@ -1451,6 +1451,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 @@ -1564,6 +1565,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 a6da1dd

Please sign in to comment.