Fix an issue where visualisation is overwritten by SD file name

We should let EndReport set the custom message type state to Status
This will ensure the SD file name is shown correctly AFTER we've shown
the visualisation

Currently the visualisation is cut off in the middle by ReportProgressHook

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

View File

@ -272,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;
}
}