From d72c61b80aaaeea2ee914060bce4789ac9b2bd3e Mon Sep 17 00:00:00 2001 From: "james.goppert" Date: Sun, 7 Nov 2010 05:59:11 +0000 Subject: [PATCH] Setup bincomm auto acknowledge. git-svn-id: https://arducopter.googlecode.com/svn/trunk@793 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/APM_BinComm/APM_BinComm.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/APM_BinComm/APM_BinComm.cpp b/libraries/APM_BinComm/APM_BinComm.cpp index a9a1028d8e..defe007aa7 100644 --- a/libraries/APM_BinComm/APM_BinComm.cpp +++ b/libraries/APM_BinComm/APM_BinComm.cpp @@ -205,7 +205,10 @@ BinComm::_decode(uint8_t inByte) for (tableIndex = 0; MSG_NULL != _handlerTable[tableIndex].messageID; tableIndex++) if ((_handlerTable[tableIndex].messageID == _messageID) || (_handlerTable[tableIndex].messageID == MSG_ANY)) + { _handlerTable[tableIndex].handler(_handlerTable[tableIndex].arg, _messageID, _messageVersion, &_decodeBuf); + send_msg_acknowledge(_messageID,_sumA,_sumB); + } } else { badMessagesReceived++; }