Optimisation: scopeState is already set by SendReadRegister

Saves 2 bytes of flash
This commit is contained in:
Guðni Már Gilbert 2022-09-11 08:45:40 +00:00 committed by D.R.racer
parent e9f5a95d4b
commit 16713aa25a
1 changed files with 0 additions and 2 deletions

View File

@ -318,7 +318,6 @@ StepStatus ProtocolLogic::CommandStep() {
case ScopeState::FINDAReqSent:
findaPressed = rsp.paramValue;
SendReadRegister(4, ScopeState::StatisticsSent);
scopeState = ScopeState::StatisticsSent;
return Processing;
case ScopeState::StatisticsSent:
scopeState = ScopeState::Wait;
@ -395,7 +394,6 @@ StepStatus ProtocolLogic::IdleStep() {
case ScopeState::FINDAReqSent:
findaPressed = rsp.paramValue;
SendReadRegister(4, ScopeState::StatisticsSent);
scopeState = ScopeState::StatisticsSent;
return Processing;
case ScopeState::StatisticsSent:
failStatistics = rsp.paramValue;