瀏覽代碼

Fix an issue where findaPressed is never set

This caused instant FINDA runout when the print starts. Now fixed :)
Guðni Már Gilbert 2 年之前
父節點
當前提交
1010f23959
共有 1 個文件被更改,包括 2 次插入0 次删除
  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;