Merge pull request #4098 from gudnimg/PFW-1515

PFW-1515 Fix an issue with Thermal Anomaly message
This commit is contained in:
3d-gussner 2023-03-24 14:04:21 +01:00 committed by GitHub
commit 34ec1ff190
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}