From e56c10df80769d0d707f1f335a3ab97d5f281714 Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Sun, 21 May 2023 06:18:22 +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 e109335..831003d 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;