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();
|
return ProcessCommandQueryResponse();
|
||||||
case ScopeState::FilamentSensorStateSent:
|
case ScopeState::FilamentSensorStateSent:
|
||||||
SendFINDAQuery();
|
SendFINDAQuery();
|
||||||
scopeState = ScopeState::FINDAReqSent;
|
|
||||||
return Processing;
|
return Processing;
|
||||||
case ScopeState::FINDAReqSent:
|
case ScopeState::FINDAReqSent:
|
||||||
SendReadRegister(4, ScopeState::StatisticsSent);
|
SendReadRegister(4, ScopeState::StatisticsSent);
|
||||||
|
|
@ -380,7 +379,6 @@ StepStatus ProtocolLogic::IdleStep() {
|
||||||
}
|
}
|
||||||
SendFINDAQuery();
|
SendFINDAQuery();
|
||||||
return Processing;
|
return Processing;
|
||||||
break;
|
|
||||||
case ScopeState::FINDAReqSent:
|
case ScopeState::FINDAReqSent:
|
||||||
SendReadRegister(4, ScopeState::StatisticsSent);
|
SendReadRegister(4, ScopeState::StatisticsSent);
|
||||||
scopeState = ScopeState::StatisticsSent;
|
scopeState = ScopeState::StatisticsSent;
|
||||||
|
|
@ -519,7 +517,6 @@ void ProtocolLogic::SwitchFromStartToIdle() {
|
||||||
currentScope = Scope::Idle;
|
currentScope = Scope::Idle;
|
||||||
IdleRestart();
|
IdleRestart();
|
||||||
SendQuery(); // force sending Q0 immediately
|
SendQuery(); // force sending Q0 immediately
|
||||||
scopeState = ScopeState::QuerySent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ProtocolLogic::Elapsed(uint32_t timeout) const {
|
bool ProtocolLogic::Elapsed(uint32_t timeout) const {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue