Fix and tweak POWER_LOSS_RECOVERY (#11151)

This commit is contained in:
Scott Lahteine
2018-06-29 22:41:02 -05:00
committed by GitHub
parent 0fff79c24b
commit fbf1c9b496
4 changed files with 37 additions and 29 deletions

View File

@ -875,11 +875,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
lcd_return_to_status();
#if ENABLED(POWER_LOSS_RECOVERY)
card.openJobRecoveryFile(false);
job_recovery_info.valid_head = job_recovery_info.valid_foot = 0;
(void)card.saveJobRecoveryInfo();
card.closeJobRecoveryFile();
job_recovery_commands_count = 0;
card.removeJobRecoveryFile();
#endif
}