Commit 9bcd1a41 authored by Don Gagne's avatar Don Gagne

Consider any message from vehicle comm lost restart

parent 43bd6a7c
......@@ -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