Fix Power Loss Recovery file delete (#13522)

This commit is contained in:
Robby Candra
2019-03-31 01:14:58 +07:00
committed by Scott Lahteine
parent d992dfe7d5
commit a3f67acd6d
3 changed files with 4 additions and 3 deletions

View File

@ -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