mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									2a65eab745
								
							
						
					
					
						commit
						aa4e3ba537
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -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"); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue