PFW-1515 Fix an issue with Thermal Anomaly message

Issue introduced with PFW-1504

Change in memory:
Flash: +40 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-03-20 20:35:49 +00:00
parent 16ec3e376f
commit c5fc1168ed
1 changed files with 3 additions and 1 deletions

View File

@ -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
}