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

Loading…
Cancel
Save