mirror of
https://github.com/ShaYmez/NXDNClients.git
synced 2024-11-22 07:24:49 -05:00
Merge pull request #305 from f1rmb/f1rmb_gpsd_fix_status_check_api_version_2
Handle GPSd API version about fix status.
This commit is contained in:
commit
46000902b2
@ -248,7 +248,11 @@ void CAPRSWriter::sendIdFrameMobile()
|
|||||||
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user