diff --git a/src/Vehicle/Vehicle.cc b/src/Vehicle/Vehicle.cc index 7b4a075..046f532 100644 --- a/src/Vehicle/Vehicle.cc +++ b/src/Vehicle/Vehicle.cc @@ -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(link); @@ -500,7 +501,7 @@ LinkInterface* Vehicle::priorityLink(void) } } } - +#endif return _links.count() ? _links[0] : NULL; }