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
parent
c4e23b687d
commit
bafad408b7
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue