Skip to content

Commit

Permalink
Merge pull request mavlink#6002 from DonLakeFlyer/HighLatencyTimeout
Browse files Browse the repository at this point in the history
No comm timeout on high latency links
  • Loading branch information
DonLakeFlyer authored Jan 12, 2018
2 parents fee0d4d + e4f0d5f commit d7790dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Vehicle/Vehicle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2066,6 +2066,11 @@ void Vehicle::setConnectionLostEnabled(bool connectionLostEnabled)

void Vehicle::_connectionLostTimeout(void)
{
if (highLatencyLink()) {
// No connection timeout on high latency links
return;
}

if (_connectionLostEnabled && !_connectionLost) {
_connectionLost = true;
_heardFrom = false;
Expand Down

0 comments on commit d7790dd

Please sign in to comment.