Browse Source

Optimisation: scopeState is already set by SendReadRegister

Saves 2 bytes of flash
Guðni Már Gilbert 2 years ago
parent
commit
16713aa25a
1 changed files with 0 additions and 2 deletions
  1. 0 2
      Firmware/mmu2_protocol_logic.cpp

+ 0 - 2
Firmware/mmu2_protocol_logic.cpp

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