Commit 115043d1 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #4671 from DonLakeFlyer/CommLostTrigger

Consider any message from vehicle comm lost restart
parents e9e9ae63 9bcd1a41
......@@ -493,6 +493,10 @@ void Vehicle::_mavlinkMessageReceived(LinkInterface* link, mavlink_message_t mes
}
}
// Mark this vehicle as active
_connectionActive();
// Give the plugin a change to adjust the message contents
if (!_firmwarePlugin->adjustIncomingMavlinkMessage(this, &message)) {
return;
......@@ -900,8 +904,6 @@ void Vehicle::_handleHeartbeat(mavlink_message_t& message)
return;
}
_connectionActive();
mavlink_heartbeat_t heartbeat;
mavlink_msg_heartbeat_decode(&message, &heartbeat);
......
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