Explorar el Código

Optimisation: scopeState is already set by SendReadRegister

Saves 2 bytes of flash
Guðni Már Gilbert hace 2 años
padre
commit
16713aa25a
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  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;