mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2026-01-14 20:05:34 -07:00
Encapsulate common display code in a singleton (#12395)
* Encapsulate common LCD code in a singleton * Depend more UBL code on UBL_DEVEL_DEBUGGING - Since most users don't need the debugging on at all times, this helps reduce the default build size for UBL by over 2K, a little closer to fitting on 128K boards.
This commit is contained in:
parent
9da6809ac3
commit
a0c795b097
65 changed files with 1881 additions and 1997 deletions
|
|
@ -370,15 +370,15 @@ FORCE_INLINE void probe_specific_action(const bool deploy) {
|
|||
BUZZ(100, 698);
|
||||
|
||||
PGM_P const ds_str = deploy ? PSTR(MSG_MANUAL_DEPLOY) : PSTR(MSG_MANUAL_STOW);
|
||||
lcd_return_to_status(); // To display the new status message
|
||||
lcd_setstatusPGM(ds_str, 99);
|
||||
ui.return_to_status(); // To display the new status message
|
||||
ui.setstatusPGM(ds_str, 99);
|
||||
serialprintPGM(ds_str);
|
||||
SERIAL_EOL();
|
||||
|
||||
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
||||
wait_for_user = true;
|
||||
while (wait_for_user) idle();
|
||||
lcd_reset_status();
|
||||
ui.reset_status();
|
||||
KEEPALIVE_STATE(IN_HANDLER);
|
||||
|
||||
#endif // PAUSE_BEFORE_DEPLOY_STOW
|
||||
|
|
@ -527,7 +527,7 @@ static bool do_probe_move(const float z, const float fr_mm_s) {
|
|||
serialprintPGM(msg_wait_for_bed_heating);
|
||||
LCD_MESSAGEPGM(MSG_BED_HEATING);
|
||||
while (thermalManager.isHeatingBed()) safe_delay(200);
|
||||
lcd_reset_status();
|
||||
ui.reset_status();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue