Change to enquecommandf_P and enquecommand_P

This commit is contained in:
Juan Francisco Estrada 2023-10-22 15:12:20 +02:00 committed by 3d-gussner
parent 7a6cfda34f
commit a52d5430aa
1 changed files with 5 additions and 5 deletions

View File

@ -7466,7 +7466,6 @@ void lcd_heat_bed_on_load_toggle()
} }
void reprint_from_eeprom() { void reprint_from_eeprom() {
char cmd[30];
char filename[13]; char filename[13];
char altfilename[13]; char altfilename[13];
uint8_t depth = 0; uint8_t depth = 0;
@ -7507,9 +7506,10 @@ void reprint_from_eeprom() {
} }
} }
MYSERIAL.print(altfilename); MYSERIAL.print(altfilename);
sprintf_P(cmd, PSTR("M23 %s"), altfilename);
enquecommand(cmd); // M23: Select SD file
sprintf_P(cmd, PSTR("M24")); enquecommandf_P(MSG_M23, altfilename);
enquecommand(cmd); // M24: Start/resume SD print
enquecommand_P(MSG_M24);
lcd_return_to_status(); lcd_return_to_status();
} }