From c5fc1168ed1d653a45d7d24ccd2be14f3af4ed5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Mon, 20 Mar 2023 20:35:49 +0000 Subject: [PATCH] PFW-1515 Fix an issue with Thermal Anomaly message Issue introduced with PFW-1504 Change in memory: Flash: +40 bytes SRAM: 0 bytes --- Firmware/ultralcd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index f327fbdc1..ff1de02aa 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -562,7 +562,9 @@ void lcdui_print_status_line(void) { scrollstuff = 0; } } else { // Otherwise check for other special events - if (!lcd_status_message_timeout.expired_cont(LCD_STATUS_DELAYED_TIMEOUT)) + if ( custom_message_type != CustomMsg::Status + && lcd_status_message_timeout.running() + && lcd_status_message_timeout.elapsed() < LCD_STATUS_DELAYED_TIMEOUT) { return; // Nothing to do, waiting for delay to expire }