Ver Fonte

Fix an issue where findaPressed is never set

This caused instant FINDA runout when the print starts. Now fixed :)
Guðni Már Gilbert há 2 anos atrás
pai
commit
1010f23959
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      Firmware/mmu2_protocol_logic.cpp

+ 2 - 0
Firmware/mmu2_protocol_logic.cpp

@@ -316,6 +316,7 @@ StepStatus ProtocolLogic::CommandStep() {
         SendFINDAQuery();
         return Processing;
     case ScopeState::FINDAReqSent:
+        findaPressed = rsp.paramValue;
         SendReadRegister(4, ScopeState::StatisticsSent);
         scopeState = ScopeState::StatisticsSent;
         return Processing;
@@ -392,6 +393,7 @@ StepStatus ProtocolLogic::IdleStep() {
         SendFINDAQuery();
         return Processing;
     case ScopeState::FINDAReqSent:
+        findaPressed = rsp.paramValue;
         SendReadRegister(4, ScopeState::StatisticsSent);
         scopeState = ScopeState::StatisticsSent;
         return Processing;