Fix lcd_status_message_level

This commit is contained in:
3d-gussner 2024-12-24 07:12:12 +01:00
parent 80cb13003e
commit ee4d8bb5e5
1 changed files with 5 additions and 5 deletions

View File

@ -542,14 +542,14 @@ void lcdui_print_status_line(void) {
break; break;
} }
} }
else if (((IS_SD_PRINTING) && else if (((IS_SD_PRINTING)
(custom_message_type == CustomMsg::Status) &&
(lcd_status_message_level <= LCD_STATUS_INFO) &&
lcd_status_message_timeout.expired_cont(LCD_STATUS_INFO_TIMEOUT))
#ifdef SHOW_FILENAME_AFTER_FINISH #ifdef SHOW_FILENAME_AFTER_FINISH
|| (GetPrinterState() == PrinterState::SDPrintingFinished) || (GetPrinterState() == PrinterState::SDPrintingFinished)
#endif //SHOW_FILENAME_AFTER_FINISH #endif //SHOW_FILENAME_AFTER_FINISH
) ) &&
(custom_message_type == CustomMsg::Status) &&
(lcd_status_message_level <= LCD_STATUS_INFO) &&
lcd_status_message_timeout.expired_cont(LCD_STATUS_INFO_TIMEOUT))
{ {
// If printing from SD, show what we are printing // If printing from SD, show what we are printing
const char* longFilenameOLD = (card.longFilename[0] ? card.longFilename : card.filename); const char* longFilenameOLD = (card.longFilename[0] ? card.longFilename : card.filename);