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