Remove extra "scopeState = ScopeState::FINDAReqSent"
saves ~20B in total
This commit is contained in:
parent
e205d0ee2f
commit
d5377c1781
|
|
@ -302,7 +302,6 @@ StepStatus ProtocolLogic::CommandStep() {
|
|||
return ProcessCommandQueryResponse();
|
||||
case ScopeState::FilamentSensorStateSent:
|
||||
SendFINDAQuery();
|
||||
scopeState = ScopeState::FINDAReqSent;
|
||||
return Processing;
|
||||
case ScopeState::FINDAReqSent:
|
||||
SendReadRegister(4, ScopeState::StatisticsSent);
|
||||
|
|
@ -380,7 +379,6 @@ StepStatus ProtocolLogic::IdleStep() {
|
|||
}
|
||||
SendFINDAQuery();
|
||||
return Processing;
|
||||
break;
|
||||
case ScopeState::FINDAReqSent:
|
||||
SendReadRegister(4, ScopeState::StatisticsSent);
|
||||
scopeState = ScopeState::StatisticsSent;
|
||||
|
|
@ -519,7 +517,6 @@ void ProtocolLogic::SwitchFromStartToIdle() {
|
|||
currentScope = Scope::Idle;
|
||||
IdleRestart();
|
||||
SendQuery(); // force sending Q0 immediately
|
||||
scopeState = ScopeState::QuerySent;
|
||||
}
|
||||
|
||||
bool ProtocolLogic::Elapsed(uint32_t timeout) const {
|
||||
|
|
|
|||
Loading…
Reference in New Issue