Browse Source

Fix broken NO_SERIAL_LINK build

QGC4.4
Don Gagne 6 years ago
parent
commit
a791120f0c
  1. 2
      src/comm/LinkManager.cc

2
src/comm/LinkManager.cc

@ -480,6 +480,7 @@ void LinkManager::_updateAutoConnectLinks(void)
emit linkConfigurationsChanged(); emit linkConfigurationsChanged();
} }
#ifndef __mobile__ #ifndef __mobile__
#ifndef NO_SERIAL_LINK
// check to see if nmea gps is configured for UDP input, if so, set it up to connect // 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 (_autoConnectSettings->autoConnectNmeaPort()->cookedValueString() == "UDP Port") {
if (_nmeaSocket.localPort() != _autoConnectSettings->nmeaUdpPort()->rawValue().toUInt() if (_nmeaSocket.localPort() != _autoConnectSettings->nmeaUdpPort()->rawValue().toUInt()
@ -500,6 +501,7 @@ void LinkManager::_updateAutoConnectLinks(void)
_nmeaSocket.close(); _nmeaSocket.close();
} }
#endif #endif
#endif
#ifndef NO_SERIAL_LINK #ifndef NO_SERIAL_LINK
QStringList currentPorts; QStringList currentPorts;

Loading…
Cancel
Save