Merge pull request #4123 from gudnimg/improve-mmu-status
Minor UI fixes for MMU status line during toolchange
This commit is contained in:
commit
8241be273b
|
|
@ -20,7 +20,9 @@ void BeginReport(CommandInProgress /*cip*/, uint16_t ec) {
|
||||||
|
|
||||||
void EndReport(CommandInProgress /*cip*/, uint16_t /*ec*/) {
|
void EndReport(CommandInProgress /*cip*/, uint16_t /*ec*/) {
|
||||||
// clear the status msg line - let the printed filename get visible again
|
// 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;
|
custom_message_type = CustomMsg::Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -270,11 +272,6 @@ void ReportProgressHook(CommandInProgress cip, uint16_t ec) {
|
||||||
if (cip != CommandInProgress::NoCommand) {
|
if (cip != CommandInProgress::NoCommand) {
|
||||||
custom_message_type = CustomMsg::MMUProgress;
|
custom_message_type = CustomMsg::MMUProgress;
|
||||||
lcd_setstatuspgm( _T(ProgressCodeToText(ec)) );
|
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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue