Commit a07ed2ea authored by Antonio Rojas's avatar Antonio Rojas
Browse files

Merge branch 'release/20.08' into master

parents af6e619f 7039b70f
...@@ -79,7 +79,11 @@ void GpsdPositionProviderPlugin::update( gps_data_t data ) ...@@ -79,7 +79,11 @@ void GpsdPositionProviderPlugin::update( gps_data_t data )
{ {
PositionProviderStatus oldStatus = m_status; PositionProviderStatus oldStatus = m_status;
GeoDataCoordinates oldPosition = m_position; GeoDataCoordinates oldPosition = m_position;
#if defined( GPSD_API_MAJOR_VERSION ) && ( GPSD_API_MAJOR_VERSION >= 10 )
if ( data.fix.status == STATUS_NO_FIX || std::isnan( data.fix.longitude ) || std::isnan( data.fix.latitude ) )
#else
if ( data.status == STATUS_NO_FIX || std::isnan( data.fix.longitude ) || std::isnan( data.fix.latitude ) ) if ( data.status == STATUS_NO_FIX || std::isnan( data.fix.longitude ) || std::isnan( data.fix.latitude ) )
#endif
m_status = PositionProviderStatusAcquiring; m_status = PositionProviderStatusAcquiring;
else { else {
m_status = PositionProviderStatusAvailable; m_status = PositionProviderStatusAvailable;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment