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/268/head
D.R.racer 2023-03-10 09:21:49 +01:00 committed by DRracer
parent c4e23b687d
commit bafad408b7
1 changed files with 2 additions and 0 deletions

View File

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