Setup bincomm auto acknowledge.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@793 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
james.goppert 2010-11-07 05:59:11 +00:00
parent f28c752bbb
commit d72c61b80a

View File

@ -205,7 +205,10 @@ BinComm::_decode(uint8_t inByte)
for (tableIndex = 0; MSG_NULL != _handlerTable[tableIndex].messageID; tableIndex++) for (tableIndex = 0; MSG_NULL != _handlerTable[tableIndex].messageID; tableIndex++)
if ((_handlerTable[tableIndex].messageID == _messageID) || if ((_handlerTable[tableIndex].messageID == _messageID) ||
(_handlerTable[tableIndex].messageID == MSG_ANY)) (_handlerTable[tableIndex].messageID == MSG_ANY))
{
_handlerTable[tableIndex].handler(_handlerTable[tableIndex].arg, _messageID, _messageVersion, &_decodeBuf); _handlerTable[tableIndex].handler(_handlerTable[tableIndex].arg, _messageID, _messageVersion, &_decodeBuf);
send_msg_acknowledge(_messageID,_sumA,_sumB);
}
} else { } else {
badMessagesReceived++; badMessagesReceived++;
} }