Commit 37f41643 authored by Gus Grubba's avatar Gus Grubba

Merge pull request #2710 from dogmaphobic/fixiOS

Fix iOS build.
parents ba48c2c0 703244f0
......@@ -486,6 +486,7 @@ void Vehicle::_sendMessage(mavlink_message_t message)
/// @return Direct usb connection link to board if one, NULL if none
LinkInterface* Vehicle::priorityLink(void)
{
#ifndef __ios__
foreach (LinkInterface* link, _links) {
if (link->isConnected()) {
SerialLink* pSerialLink = qobject_cast<SerialLink*>(link);
......@@ -500,7 +501,7 @@ LinkInterface* Vehicle::priorityLink(void)
}
}
}
#endif
return _links.count() ? _links[0] : NULL;
}
......
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