Browse Source

Allow pseudo mobile builds (Native QML on Desktop)

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

10
qgroundcontrol.pro

@ -233,10 +233,12 @@ QT += \ @@ -233,10 +233,12 @@ QT += \
multimedia
}
!MobileBuild {
QT += \
printsupport \
serialport \
AndroidBuild || iOSBuild {
# Android and iOS don't unclude these
} else {
QT += \
printsupport \
serialport \
}
contains(DEFINES, QGC_ENABLE_BLUETOOTH) {

2
src/comm/LinkManager.cc

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

Loading…
Cancel
Save