Merge pull request #232 from gudnimg/fix-firmware-panic-error-report

Fix issue where firmware panic error code is overwritten
pull/237/head
Guðni Már Gilbert 2022-10-28 10:25:21 +00:00 committed by GitHub
commit 144725ab11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -136,7 +136,8 @@ bool CommandBase::WaitForModulesErrorRecovery() {
} }
bool CommandBase::Step() { bool CommandBase::Step() {
if (WaitForModulesErrorRecovery()) { if (WaitForModulesErrorRecovery() || state == ProgressCode::ERRInternal) {
// ERRInternal: firmware panic was triggered
return true; return true;
} }
return StepInner(); return StepInner();