Handle GPSd API version about fix status.

This commit is contained in:
Daniel Caujolle-Bert 2023-05-21 07:50:01 +02:00
parent 90dec58610
commit f4914fe13c

View File

@ -248,7 +248,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;