Skip to content

Commit

Permalink
Merge pull request MarlinFirmware#4123 from gudnimg/improve-mmu-status
Browse files Browse the repository at this point in the history
Minor UI fixes for MMU status line during toolchange
  • Loading branch information
leptun authored Apr 14, 2023
2 parents c15ea67 + f34c1ff commit 8241be2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Firmware/mmu2_reporting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -270,11 +272,6 @@ void ReportProgressHook(CommandInProgress cip, uint16_t ec) {
if (cip != CommandInProgress::NoCommand) {
custom_message_type = CustomMsg::MMUProgress;
lcd_setstatuspgm( _T(ProgressCodeToText(ec)) );
} else {
// If there is no command in progress we can display other
// useful information such as the name of the SD file
// being printed
custom_message_type = CustomMsg::Status;
}
}

Expand Down

0 comments on commit 8241be2

Please sign in to comment.