mirror of
https://github.com/g4klx/DMRGateway
synced 2025-12-22 22:45:36 +08:00
Handle GPSd API version about fix status.
This commit is contained in:
4
GPSD.cpp
4
GPSD.cpp
@@ -101,7 +101,11 @@ void CGPSD::sendReport()
|
|||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if GPSD_API_MAJOR_VERSION >= 10
|
||||||
if (m_gpsdData.fix.status != STATUS_FIX)
|
if (m_gpsdData.fix.status != STATUS_FIX)
|
||||||
|
#else
|
||||||
|
if (m_gpsdData.status != STATUS_FIX)
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bool latlonSet = (m_gpsdData.set & LATLON_SET) == LATLON_SET;
|
bool latlonSet = (m_gpsdData.set & LATLON_SET) == LATLON_SET;
|
||||||
|
|||||||
Reference in New Issue
Block a user