diff options
author | Gary E. Miller <gem@rellim.com> | 2016-07-16 16:02:46 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-07-16 16:02:46 -0700 |
commit | 0d5dd8f4b567a628a65b7be1110386b086d59f63 (patch) | |
tree | 4a5d113363f3edd15c5dd6720fa9c84d8060e7fe /gpsd.c | |
parent | 3cf52771df0c57c1f6096f3600d29accb6b41d37 (diff) | |
download | gpsd-0d5dd8f4b567a628a65b7be1110386b086d59f63.tar.gz |
gpsd was shipping NMEA time to SHM even when no valid fix.
NMEA time can be wildly random with no fix.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1527,8 +1527,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 ( NTP_MIN_FIXES > device->fixcnt && - (changed & GOODTIME_IS) == 0) { + } else if ( NTP_MIN_FIXES > device->fixcnt ) { /* many GPS spew random times until a valid GPS fix */ //gpsd_log(&context.errout, LOG_PROG, "NTP: no fix\n"); } else if (isnan(device->newdata.time)) { |