Browse Source

Merge pull request #6002 from DonLakeFlyer/HighLatencyTimeout

No comm timeout on high latency links
QGC4.4
Don Gagne 7 years ago committed by GitHub
parent
commit
d7790dd9fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/Vehicle/Vehicle.cc

5
src/Vehicle/Vehicle.cc

@ -2066,6 +2066,11 @@ void Vehicle::setConnectionLostEnabled(bool connectionLostEnabled)
void Vehicle::_connectionLostTimeout(void) void Vehicle::_connectionLostTimeout(void)
{ {
if (highLatencyLink()) {
// No connection timeout on high latency links
return;
}
if (_connectionLostEnabled && !_connectionLost) { if (_connectionLostEnabled && !_connectionLost) {
_connectionLost = true; _connectionLost = true;
_heardFrom = false; _heardFrom = false;

Loading…
Cancel
Save