diff --git a/gpsd_client/src/client.cpp b/gpsd_client/src/client.cpp index 1642ae3..0c8ff2c 100644 --- a/gpsd_client/src/client.cpp +++ b/gpsd_client/src/client.cpp @@ -154,11 +154,11 @@ class GPSDClient { } #if GPSD_API_MAJOR_VERSION >= 12 - 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))) { #elif GPSD_API_MAJOR_VERSION >= 10 - 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->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