From ab3276948799567852e7af5e8687fc319b98db3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Sat, 6 Aug 2022 13:11:15 +0000 Subject: [PATCH] Send button from current state machine --- Firmware/mmu2_protocol_logic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/mmu2_protocol_logic.cpp b/Firmware/mmu2_protocol_logic.cpp index d8cca0fd4..155444c04 100644 --- a/Firmware/mmu2_protocol_logic.cpp +++ b/Firmware/mmu2_protocol_logic.cpp @@ -480,7 +480,7 @@ bool ProtocolLogic::ActivatePlannedRequest(){ // @@TODO - this is not completely correct, but it does the job. // In Idle mode the command part is not active, but we still need button handling in Idle mode (resolve MMU init errors) // -> command.SendButton is not correct, but it sends the message and everything works (for now) - command.SendButton(plannedRq.value); + currentState->SendButton(plannedRq.value); plannedRq = RequestMsg(RequestMsgCodes::unknown, 0); return true; } else if( plannedRq.code != RequestMsgCodes::unknown ){