소스 검색

Send button from current state machine

Guðni Már Gilbert 2 년 전
부모
커밋
ab32769487
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Firmware/mmu2_protocol_logic.cpp

+ 1 - 1
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 ){