From b88cd44d55070497070eccfc16abce27d19b460b Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sat, 28 Mar 2015 19:06:42 -0700 Subject: [PATCH] Reset mavlink channel before we use it --- src/comm/LinkManager.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/comm/LinkManager.cc b/src/comm/LinkManager.cc index bc7fac6..53d726c 100644 --- a/src/comm/LinkManager.cc +++ b/src/comm/LinkManager.cc @@ -118,6 +118,7 @@ void LinkManager::_addLink(LinkInterface* link) // Find a mavlink channel to use for this link for (int i=0; i<32; i++) { if (!(_mavlinkChannelsUsedBitMask && 1 << i)) { + mavlink_reset_channel_status(i); link->_setMavlinkChannel(i); _mavlinkChannelsUsedBitMask |= i << i; break;