Commit 3cf08f4c authored by tstellanova's avatar tstellanova

don't even attempt to send message if link is down

parent e72fe25a
......@@ -1862,7 +1862,8 @@ void UAS::sendMessage(mavlink_message_t message)
{
if (LinkManager::instance()->getLinks().contains(link))
{
sendMessage(link, message);
if (link->isConnected())
sendMessage(link, message);
qDebug() << "SENT MESSAGE id" << message.msgid << "component" << message.compid;
}
else
......
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