Fix and tweak POWER_LOSS_RECOVERY (#11151)
This commit is contained in:
parent
0fff79c24b
commit
fbf1c9b496
4 changed files with 37 additions and 29 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue