Commit 529f8dde authored by Don Gagne's avatar Don Gagne

Merge pull request #2682 from tcanabrava/fixBitMask

bitwise and, not boolean and, to check for bitmasks.
parents 9ed0ab6e 206929ab
......@@ -174,7 +174,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)) {
if (!(_mavlinkChannelsUsedBitMask & 1 << i)) {
_mavlinkChannelsUsedBitMask |= i << i;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment