Don't always set MSG_WELCOME at end of toolchange

This should only be set when NOT printing

Change in memory:
Flash: +8 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-04-02 11:28:07 +00:00 committed by Alex Voinea
parent c15ea67379
commit 4b3dc65598
No known key found for this signature in database
GPG Key ID: 37EDFD565CB33BAD
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@ void BeginReport(CommandInProgress /*cip*/, uint16_t ec) {
void EndReport(CommandInProgress /*cip*/, uint16_t /*ec*/) {
// clear the status msg line - let the printed filename get visible again
lcd_setstatuspgm(MSG_WELCOME); // should be seen only when the printer is not printing a file
if (!printJobOngoing()) {
lcd_setstatuspgm(MSG_WELCOME);
}
custom_message_type = CustomMsg::Status;
}