From 0cbf2010ffba799a7235c2216b7507bc8ccb2b9d Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Sat, 15 Jul 2023 08:20:52 +0200 Subject: [PATCH] add compatiblitw with libgps 14 --- Common/APRSGPSDIdFrameProvider.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Common/APRSGPSDIdFrameProvider.cpp b/Common/APRSGPSDIdFrameProvider.cpp index 7f621be..969c9f9 100644 --- a/Common/APRSGPSDIdFrameProvider.cpp +++ b/Common/APRSGPSDIdFrameProvider.cpp @@ -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;