Commit b0df0096 authored by acfloria's avatar acfloria

Fix link fallback for multiple links

parent d4124c20
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment