Commit 703244f0 authored by dogmaphobic's avatar dogmaphobic

Fix iOS build.

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