Fix and improve POWER_LOSS_RECOVERY (#11187)

This commit is contained in:
Scott Lahteine 2018-07-02 23:21:28 -05:00 committed by GitHub
parent e0ab8acf19
commit 1a0f4dedad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 134 additions and 72 deletions

View file

@ -496,7 +496,7 @@ inline void get_serial_commands() {
if (job_recovery_commands_count) {
if (_enqueuecommand(job_recovery_commands[job_recovery_commands_index])) {
++job_recovery_commands_index;
if (!--job_recovery_commands_count) job_recovery_phase = JOB_RECOVERY_IDLE;
if (!--job_recovery_commands_count) job_recovery_phase = JOB_RECOVERY_DONE;
}
return true;
}