Fix Power Loss Recovery file delete (#13522)
This commit is contained in:
committed by
Scott Lahteine
parent
d992dfe7d5
commit
a3f67acd6d
@ -222,6 +222,8 @@ void PrintJobRecovery::write() {
|
||||
open(false);
|
||||
file.seekSet(0);
|
||||
const int16_t ret = file.write(&info, sizeof(info));
|
||||
close();
|
||||
|
||||
#if ENABLED(DEBUG_POWER_LOSS_RECOVERY)
|
||||
if (ret == -1) SERIAL_ECHOLNPGM("Power-loss file write failed.");
|
||||
#else
|
||||
|
Reference in New Issue
Block a user