Merge pull request #126 from f1rmb/f1rmb_gpsd_fix_status_check_api_version

Handle GPSd API version about fix status.
This commit is contained in:
Jonathan Naylor 2023-05-21 12:57:52 +01:00 committed by GitHub
commit a28aa7c549
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;