Skip to content

Commit

Permalink
Port of #74 (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
danthony06 authored May 9, 2024
1 parent f7fe32f commit 4e61959
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gpsd_client/src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e61959

Please sign in to comment.