mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-04-07 07:23:50 +00:00
Handle GPSd API version about fix status.
This commit is contained in:
parent
a858cf5276
commit
859c899ec8
1 changed files with 4 additions and 0 deletions
4
GPSD.cpp
4
GPSD.cpp
|
|
@ -101,7 +101,11 @@ void CGPSD::sendReport()
|
|||
return;
|
||||
#endif
|
||||
|
||||
#if GPSD_API_MAJOR_VERSION >= 10
|
||||
if (m_gpsdData.fix.status != STATUS_FIX)
|
||||
#else
|
||||
if (m_gpsdData.status != STATUS_FIX)
|
||||
#endif
|
||||
return;
|
||||
|
||||
bool latlonSet = (m_gpsdData.set & LATLON_SET) == LATLON_SET;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue