add compatiblitw with libgps 14

feature/IPV6_#35_Reboot
Geoffrey Merck 2 years ago
parent a751735462
commit 0cbf2010ff

@ -74,14 +74,15 @@ bool CAPRSGPSDIdFrameProvider::buildAPRSFramesInt(const CAPRSEntry * entry, std:
return false;
#endif
#if GPSD_API_MAJOR_VERSION >= 10
#if GPSD_API_MAJOR_VERSION >= 10 && GPSD_API_MAJOR_VERSION < 14
if(m_gpsdData.fix.status == STATUS_NO_FIX)
return false;
#else
if (m_gpsdData.status != STATUS_FIX)
if (m_gpsdData.fix.status < STATUS_GPS)
return false;
#endif
bool latlonSet = (m_gpsdData.set & LATLON_SET) == LATLON_SET;
bool altitudeSet = (m_gpsdData.set & ALTITUDE_SET) == ALTITUDE_SET;
bool velocitySet = (m_gpsdData.set & SPEED_SET) == SPEED_SET;

Loading…
Cancel
Save

Powered by TurnKey Linux.