From f34c1ffeacaf1efcc870cd903ac0be30f27c4d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Sun, 2 Apr 2023 11:28:58 +0000 Subject: [PATCH] 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 --- Firmware/mmu2_reporting.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Firmware/mmu2_reporting.cpp b/Firmware/mmu2_reporting.cpp index 5504128a8..ea4bcd01f 100644 --- a/Firmware/mmu2_reporting.cpp +++ b/Firmware/mmu2_reporting.cpp @@ -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; } }