From 795c689ba88308f4b87a119b9ec5bcfca66048c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Tue, 20 Jun 2017 13:14:26 +0200 Subject: [PATCH] rtk gps: exclude for mobile build --- src/QmlControls/QGroundControlQmlGlobal.cc | 2 ++ src/QmlControls/QGroundControlQmlGlobal.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/QmlControls/QGroundControlQmlGlobal.cc b/src/QmlControls/QGroundControlQmlGlobal.cc index 24f9d53777..3fea67ba47 100644 --- a/src/QmlControls/QGroundControlQmlGlobal.cc +++ b/src/QmlControls/QGroundControlQmlGlobal.cc @@ -63,6 +63,7 @@ void QGroundControlQmlGlobal::setToolbox(QGCToolbox* toolbox) _firmwarePluginManager = toolbox->firmwarePluginManager(); _settingsManager = toolbox->settingsManager(); +#ifndef __mobile__ GPSManager *gpsManager = toolbox->gpsManager(); if (gpsManager) { connect(gpsManager, &GPSManager::onConnect, this, &QGroundControlQmlGlobal::_onGPSConnect); @@ -70,6 +71,7 @@ void QGroundControlQmlGlobal::setToolbox(QGCToolbox* toolbox) connect(gpsManager, &GPSManager::surveyInStatus, this, &QGroundControlQmlGlobal::_GPSSurveyInStatus); connect(gpsManager, &GPSManager::satelliteUpdate, this, &QGroundControlQmlGlobal::_GPSNumSatellites); } +#endif /* __mobile__ */ } void QGroundControlQmlGlobal::saveGlobalSetting (const QString& key, const QString& value) diff --git a/src/QmlControls/QGroundControlQmlGlobal.h b/src/QmlControls/QGroundControlQmlGlobal.h index 1f57ff9f43..4dfe9dcc86 100644 --- a/src/QmlControls/QGroundControlQmlGlobal.h +++ b/src/QmlControls/QGroundControlQmlGlobal.h @@ -22,7 +22,9 @@ #include "SimulatedPosition.h" #include "QGCLoggingCategory.h" #include "AppSettings.h" +#ifndef __mobile__ #include "GPS/GPSManager.h" +#endif /* __mobile__ */ #include "GPSRTKFactGroup.h" #ifdef QT_DEBUG -- GitLab