Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Marble
Commits
a07ed2ea
Commit
a07ed2ea
authored
Aug 05, 2020
by
Antonio Rojas
Browse files
Merge branch 'release/20.08' into master
parents
af6e619f
7039b70f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/positionprovider/gpsd/GpsdPositionProviderPlugin.cpp
View file @
a07ed2ea
...
...
@@ -79,7 +79,11 @@ void GpsdPositionProviderPlugin::update( gps_data_t data )
{
PositionProviderStatus
oldStatus
=
m_status
;
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
)
)
#endif
m_status
=
PositionProviderStatusAcquiring
;
else
{
m_status
=
PositionProviderStatusAvailable
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment