From 1010f23959ce968bd9d477e1827714917742d509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Sat, 10 Sep 2022 16:13:58 +0000 Subject: [PATCH] Fix an issue where findaPressed is never set This caused instant FINDA runout when the print starts. Now fixed :) --- Firmware/mmu2_protocol_logic.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Firmware/mmu2_protocol_logic.cpp b/Firmware/mmu2_protocol_logic.cpp index 0fc4b9989..8eda8ac9b 100644 --- a/Firmware/mmu2_protocol_logic.cpp +++ b/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;