diff --git a/src/comm/MAVLinkProtocol.cc b/src/comm/MAVLinkProtocol.cc index a70310bfed37df495c409c57de2ad2f550f5fdc0..83853345a82b7e9b21fb1736430904684532fe8c 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