From f4914fe13c234c9417b3b10d9a52b740765433bb Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Sun, 21 May 2023 07:50:01 +0200 Subject: [PATCH] Handle GPSd API version about fix status. --- NXDNGateway/APRSWriter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NXDNGateway/APRSWriter.cpp b/NXDNGateway/APRSWriter.cpp index 1252768..f575437 100644 --- a/NXDNGateway/APRSWriter.cpp +++ b/NXDNGateway/APRSWriter.cpp @@ -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;