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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user