Do not unconditionally overwrite the status message in check_file()

No function should touch the status message directly without checking
the message severity level first. Replace the strcpy_P with
lcd_setstatuspgm().
This commit is contained in:
Yuri D'Elia 2021-12-07 16:56:39 +01:00
parent 7ff117d0c4
commit 78f856c8d6

View File

@ -8593,7 +8593,7 @@ static bool check_file(const char* filename) {
cmdqueue_serial_disabled = false; cmdqueue_serial_disabled = false;
card.printingHasFinished(); card.printingHasFinished();
strncpy_P(lcd_status_message, _T(WELCOME_MSG), LCD_WIDTH); lcd_setstatuspgm(_T(WELCOME_MSG));
lcd_finishstatus(); lcd_finishstatus();
return result; return result;
} }