From 859c899ec8835408d1305d2e5e3f8d45a6f0dc3b Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Sun, 21 May 2023 05:28:55 +0200 Subject: [PATCH] Handle GPSd API version about fix status. --- GPSD.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GPSD.cpp b/GPSD.cpp index e075dcd..4a86c0e 100644 --- a/GPSD.cpp +++ b/GPSD.cpp @@ -101,7 +101,11 @@ void CGPSD::sendReport() 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;