summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-04-05 14:28:14 -0700
committerGary E. Miller <gem@rellim.com>2016-04-05 14:28:14 -0700
commitb82cc253da1de5c9beb4674a2e7f855aaea010e5 (patch)
tree470c13341100967baee00fef19614174e03c8399 /gpsd.c
parente30203491a842d63254db19fe261971f98c50a36 (diff)
downloadgpsd-b82cc253da1de5c9beb4674a2e7f855aaea010e5.tar.gz
Bad NMEA time was still leaking, require 3 fixes for time.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 9d2853d3..2381e17c 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1517,7 +1517,7 @@ static void all_reports(struct gps_device_t *device, gps_mask_t changed)
*/
if ((changed & TIME_SET) == 0) {
//gpsd_log(&context.errout, LOG_PROG, "NTP: No time this packet\n");
- } else if ( 0 >= device->fixcnt &&
+ } else if ( PPS_MIN_FIXES > device->fixcnt &&
(changed & GOODTIME_IS) == 0) {
/* many GPS spew random times until a valid GPS fix */
//gpsd_log(&context.errout, LOG_PROG, "NTP: no fix\n");