diff options
author | Gary E. Miller <gem@rellim.com> | 2016-04-05 14:28:14 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-04-05 14:28:14 -0700 |
commit | b82cc253da1de5c9beb4674a2e7f855aaea010e5 (patch) | |
tree | 470c13341100967baee00fef19614174e03c8399 /gpsd.c | |
parent | e30203491a842d63254db19fe261971f98c50a36 (diff) | |
download | gpsd-b82cc253da1de5c9beb4674a2e7f855aaea010e5.tar.gz |
Bad NMEA time was still leaking, require 3 fixes for time.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |