summaryrefslogtreecommitdiffstats
path: root/subsurface-core/gpslocation.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-24 08:49:45 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-24 08:49:45 -0700
commitaa4e3ba537344b34aac738ffedf1b88245d3388a (patch)
treeaf80ef4bdbe40929c93c7b44803c3ee9b942e91c /subsurface-core/gpslocation.cpp
parent2a65eab7454e000bbe4611ee300e5a8d1f1e7575 (diff)
downloadsubsurface-aa4e3ba537344b34aac738ffedf1b88245d3388a.tar.gz
Give more information about the GPS location service
On iOS it seems that I get a fix every second. Even though the QGeoPositionInfoSource is set up with an update interval of 5 minutes... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/gpslocation.cpp')
-rw-r--r--subsurface-core/gpslocation.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/subsurface-core/gpslocation.cpp b/subsurface-core/gpslocation.cpp
index 9f1961cbf..6a65ddeff 100644
--- a/subsurface-core/gpslocation.cpp
+++ b/subsurface-core/gpslocation.cpp
@@ -59,8 +59,7 @@ QGeoPositionInfoSource *GpsLocation::getGpsSource()
#ifndef SUBSURFACE_MOBILE
if (verbose)
#endif
- status("created GPS source");
- QString msg = QString("have position source %1").arg(m_GpsSource->sourceName());
+ status(QString("Created position source %1").arg(m_GpsSource->sourceName()));
connect(m_GpsSource, SIGNAL(positionUpdated(QGeoPositionInfo)), this, SLOT(newPosition(QGeoPositionInfo)));
connect(m_GpsSource, SIGNAL(updateTimeout()), this, SLOT(updateTimeout()));
m_GpsSource->setUpdateInterval(5 * 60 * 1000); // 5 minutes so the device doesn't drain the battery
@@ -89,7 +88,7 @@ void GpsLocation::serviceEnable(bool toggle)
}
if (toggle) {
gpsSource->startUpdates();
- status("Starting Subsurface GPS service");
+ status(QString("Starting Subsurface GPS service with update interval %1").arg(gpsSource->updateInterval()));
} else {
gpsSource->stopUpdates();
status("Stopping Subsurface GPS service");