Hold Idler and Selector even in logic::StartUp error handling

StartUp doesn't share the common ErrDisengageIdler code so the hold/resume must be used explicitly.
pull/267/head
D.R.racer 2023-03-10 09:21:49 +01:00
parent c4e23b687d
commit 82508efc9a
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ StartUp startUp;
bool StartUp::Reset(uint8_t) {
if (!CheckFINDAvsEEPROM()) {
HoldIdlerSelector();
SetInitError(ErrorCode::FINDA_VS_EEPROM_DISREPANCY);
}
@ -33,6 +34,7 @@ bool StartUp::StepInner() {
error = ErrorCode::FINDA_VS_EEPROM_DISREPANCY;
state = ProgressCode::ERRWaitingForUser;
} else {
ResumeIdlerSelector();
error = ErrorCode::OK;
state = ProgressCode::OK;
}