Optimisation: scopeState is already set by SendReadRegister
Saves 2 bytes of flash
This commit is contained in:
parent
e9f5a95d4b
commit
16713aa25a
|
|
@ -318,7 +318,6 @@ StepStatus ProtocolLogic::CommandStep() {
|
||||||
case ScopeState::FINDAReqSent:
|
case ScopeState::FINDAReqSent:
|
||||||
findaPressed = rsp.paramValue;
|
findaPressed = rsp.paramValue;
|
||||||
SendReadRegister(4, ScopeState::StatisticsSent);
|
SendReadRegister(4, ScopeState::StatisticsSent);
|
||||||
scopeState = ScopeState::StatisticsSent;
|
|
||||||
return Processing;
|
return Processing;
|
||||||
case ScopeState::StatisticsSent:
|
case ScopeState::StatisticsSent:
|
||||||
scopeState = ScopeState::Wait;
|
scopeState = ScopeState::Wait;
|
||||||
|
|
@ -395,7 +394,6 @@ StepStatus ProtocolLogic::IdleStep() {
|
||||||
case ScopeState::FINDAReqSent:
|
case ScopeState::FINDAReqSent:
|
||||||
findaPressed = rsp.paramValue;
|
findaPressed = rsp.paramValue;
|
||||||
SendReadRegister(4, ScopeState::StatisticsSent);
|
SendReadRegister(4, ScopeState::StatisticsSent);
|
||||||
scopeState = ScopeState::StatisticsSent;
|
|
||||||
return Processing;
|
return Processing;
|
||||||
case ScopeState::StatisticsSent:
|
case ScopeState::StatisticsSent:
|
||||||
failStatistics = rsp.paramValue;
|
failStatistics = rsp.paramValue;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue