diff --git a/src/comm/LinkManager.cc b/src/comm/LinkManager.cc index 6f511c822cf1bb73dcdfccf2755417f8a6258deb..957af8c6456d70201cf814281ded11343c0c2ed3 100644 --- a/src/comm/LinkManager.cc +++ b/src/comm/LinkManager.cc @@ -480,6 +480,7 @@ void LinkManager::_updateAutoConnectLinks(void) emit linkConfigurationsChanged(); } #ifndef __mobile__ +#ifndef NO_SERIAL_LINK // check to see if nmea gps is configured for UDP input, if so, set it up to connect if (_autoConnectSettings->autoConnectNmeaPort()->cookedValueString() == "UDP Port") { if (_nmeaSocket.localPort() != _autoConnectSettings->nmeaUdpPort()->rawValue().toUInt() @@ -500,6 +501,7 @@ void LinkManager::_updateAutoConnectLinks(void) _nmeaSocket.close(); } #endif +#endif #ifndef NO_SERIAL_LINK QStringList currentPorts;