From 4e619596b323b8fff395b129f35cd412d5bd7d77 Mon Sep 17 00:00:00 2001 From: David Anthony Date: Thu, 9 May 2024 15:32:43 -0500 Subject: [PATCH] Port of https://github.com/swri-robotics/gps_umd/pull/74 (#98) --- gpsd_client/src/client.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpsd_client/src/client.cpp b/gpsd_client/src/client.cpp index 841c8ec..6de5888 100644 --- a/gpsd_client/src/client.cpp +++ b/gpsd_client/src/client.cpp @@ -177,12 +177,12 @@ namespace gpsd_client } #if GPSD_API_MAJOR_VERSION >= 10 #ifdef STATUS_FIX - if ((p->fix.status & STATUS_FIX) && !(check_fix_by_variance_ && std::isnan(p->fix.epx))) + if ((p->fix.status != STATUS_NO_FIX) && !(check_fix_by_variance_ && std::isnan(p->fix.epx))) #else - if ((p->fix.status & STATUS_GPS) && !(check_fix_by_variance_ && std::isnan(p->fix.epx))) + if ((p->fix.status != STATUS_NO_FIX) && !(check_fix_by_variance_ && std::isnan(p->fix.epx))) #endif #else - if ((p->status & STATUS_FIX) && !(check_fix_by_variance_ && std::isnan(p->fix.epx))) + if ((p->status != STATUS_NO_FIX) && !(check_fix_by_variance_ && std::isnan(p->fix.epx))) #endif { status.status = 0; // FIXME: gpsmm puts its constants in the global