From fdc88047e21679789ffa6aa63590ed91a58ba25c Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Sun, 21 May 2023 06:30:19 +0200 Subject: [PATCH] Handle GPSd API version about fix status. --- Common/APRSWriter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Common/APRSWriter.cpp b/Common/APRSWriter.cpp index 9df4b0f..985555e 100644 --- a/Common/APRSWriter.cpp +++ b/Common/APRSWriter.cpp @@ -456,7 +456,11 @@ void CAPRSWriter::sendIdFramesMobile() 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;