Browse Source

Allow pseudo mobile builds (Native QML on Desktop)

QGC4.4
Gus Grubba 7 years ago
parent
commit
2f291f28e4
  1. 4
      qgroundcontrol.pro
  2. 2
      src/comm/LinkManager.cc

4
qgroundcontrol.pro

@ -233,7 +233,9 @@ QT += \
multimedia multimedia
} }
!MobileBuild { AndroidBuild || iOSBuild {
# Android and iOS don't unclude these
} else {
QT += \ QT += \
printsupport \ printsupport \
serialport \ serialport \

2
src/comm/LinkManager.cc

@ -613,11 +613,13 @@ void LinkManager::_updateAutoConnectLinks(void)
} }
// Check for RTK GPS connection gone // Check for RTK GPS connection gone
#if !defined(__mobile__)
if (!_autoConnectRTKPort.isEmpty() && !currentPorts.contains(_autoConnectRTKPort)) { if (!_autoConnectRTKPort.isEmpty() && !currentPorts.contains(_autoConnectRTKPort)) {
qCDebug(LinkManagerLog) << "RTK GPS disconnected" << _autoConnectRTKPort; qCDebug(LinkManagerLog) << "RTK GPS disconnected" << _autoConnectRTKPort;
_toolbox->gpsManager()->disconnectGPS(); _toolbox->gpsManager()->disconnectGPS();
_autoConnectRTKPort.clear(); _autoConnectRTKPort.clear();
} }
#endif
#endif #endif
#endif // NO_SERIAL_LINK #endif // NO_SERIAL_LINK

Loading…
Cancel
Save