Explorar o código

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().
Yuri D'Elia %!s(int64=2) %!d(string=hai) anos
pai
achega
78f856c8d6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Firmware/ultralcd.cpp

+ 1 - 1
Firmware/ultralcd.cpp

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