From f898f78ffef439605775dbdad86e56ca5eff9dc9 Mon Sep 17 00:00:00 2001 From: pixhawk Date: Sat, 8 May 2010 11:09:55 +0200 Subject: [PATCH] Fixed small compile error with module bit mask --- src/comm/MAVLinkProtocol.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comm/MAVLinkProtocol.cc b/src/comm/MAVLinkProtocol.cc index a70310b..8385334 100644 --- a/src/comm/MAVLinkProtocol.cc +++ b/src/comm/MAVLinkProtocol.cc @@ -177,7 +177,7 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link) //if () // If a new loss was detected or we just hit one 128th packet step - if (lastLoss != totalLossCounter || (totalReceiveCounter & 0b1111111) == 0) + if (lastLoss != totalLossCounter || (totalReceiveCounter & 0x7F) == 0) { // Calculate new loss ratio // Receive loss