Fix and tweak POWER_LOSS_RECOVERY (#11150)

This commit is contained in:
Scott Lahteine 2018-06-29 22:40:49 -05:00 committed by GitHub
parent 67475374ae
commit 609e7da3f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 30 deletions

View file

@ -863,11 +863,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
}