Skip to content

Commit

Permalink
Do not unconditionally overwrite the status message in check_file()
Browse files Browse the repository at this point in the history
No function should touch the status message directly without checking
the message severity level first. Replace the strcpy_P with
lcd_setstatuspgm().
  • Loading branch information
wavexx committed Dec 7, 2021
1 parent 7ff117d commit 78f856c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Firmware/ultralcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 78f856c

Please sign in to comment.