Browse Source

Fixed small compile error with module bit mask

QGC4.4
pixhawk 15 years ago
parent
commit
f898f78ffe
  1. 2
      src/comm/MAVLinkProtocol.cc

2
src/comm/MAVLinkProtocol.cc

@ -177,7 +177,7 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link) @@ -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

Loading…
Cancel
Save