1
0
Fork 0

Merge pull request #305 from f1rmb/f1rmb_gpsd_fix_status_check_api_version_2

Take care of GPSd API version about fix.
master
Jonathan Naylor 2 years ago committed by GitHub
commit 3409e45d83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -308,7 +308,11 @@ void CAPRSWriter::sendIdFrameMobile()
#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;

@ -307,7 +307,11 @@ void CAPRSWriter::sendIdFrameMobile()
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…
Cancel
Save