Remove extra "scopeState = ScopeState::FINDAReqSent"

saves ~20B in total
This commit is contained in:
D.R.racer 2022-09-01 07:39:47 +02:00
parent e205d0ee2f
commit d5377c1781
1 changed files with 0 additions and 3 deletions

View File

@ -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 {