Browse Source

Fix link fallback for multiple links

QGC4.4
acfloria 7 years ago
parent
commit
b0df0096c2
  1. 5
      src/Vehicle/Vehicle.cc

5
src/Vehicle/Vehicle.cc

@ -2508,7 +2508,10 @@ void Vehicle::_linkActiveChanged(LinkInterface *link, bool active, int vehicleID
1); // Request protocol version 1); // Request protocol version
} }
} else if (!active && !_connectionLost) { } else if (!active && !_connectionLost) {
if (_connectionLostEnabled) { _updatePriorityLink(false /* updateActive */, false /* sendCommand */);
// check if another active link has been found
if (link == _priorityLink) {
_connectionLost = true; _connectionLost = true;
communicationLost = true; communicationLost = true;
_heardFrom = false; _heardFrom = false;

Loading…
Cancel
Save