From 45817eb789363968562c496bdbba724b18ee5377 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 30 Jul 2017 19:03:33 +0200 Subject: [PATCH] MAVLink protocol: Increase disconnect holdoff to avoid false positives in tests --- 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 8b60748..6175a52 100644 --- a/src/comm/MAVLinkProtocol.cc +++ b/src/comm/MAVLinkProtocol.cc @@ -196,7 +196,7 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b) if (decodeState == 0 && !link->decodedFirstMavlinkPacket()) { nonmavlinkCount++; - if (nonmavlinkCount > 500 && !warnedUserNonMavlink) + if (nonmavlinkCount > 1000 && !warnedUserNonMavlink) { // 500 bytes with no mavlink message. Are we connected to a mavlink capable device? if (!checkedUserNonMavlink)