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

Double-check link status after signal comes through

parent 168dc77b
......@@ -449,6 +449,11 @@ bool Vehicle::sendMessageOnLink(LinkInterface* link, mavlink_message_t message)
void Vehicle::_sendMessageOnLink(LinkInterface* link, mavlink_message_t message)
{
// Make sure this is still a good link
if (!link || !_links.contains(link) || !link->isConnected()) {
return;
}
// Give the plugin a chance to adjust
_firmwarePlugin->adjustMavlinkMessage(this, &message);
......
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