Set LCD status for EEPROM errors (#16977)

This commit is contained in:
InsanityAutomation
2020-02-26 04:04:02 -05:00
committed by GitHub
parent e78f607ef3
commit cdcd45d651
5 changed files with 30 additions and 16 deletions

View File

@@ -1453,7 +1453,7 @@ void MarlinUI::update() {
/**
* Reset the status message
*/
void MarlinUI::reset_status() {
void MarlinUI::reset_status(const bool no_welcome) {
PGM_P printing = GET_TEXT(MSG_PRINTING);
PGM_P welcome = GET_TEXT(WELCOME_MSG);
#if SERVICE_INTERVAL_1 > 0
@@ -1485,8 +1485,10 @@ void MarlinUI::update() {
else if (print_job_timer.needsService(3)) msg = service3;
#endif
else
else if (!no_welcome)
msg = welcome;
else
return;
set_status_P(msg, -1);
}