Browse Source

MAVLink protocol: Increase disconnect holdoff to avoid false positives in tests

QGC4.4
Lorenz Meier 8 years ago
parent
commit
45817eb789
  1. 2
      src/comm/MAVLinkProtocol.cc

2
src/comm/MAVLinkProtocol.cc

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

Loading…
Cancel
Save