diff options
author | HTJ <address@hidden> | 2016-03-20 21:56:47 +0100 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2016-03-22 18:59:00 -0400 |
commit | d46da8954e81fe8eea6e7411fecfc62f44596033 (patch) | |
tree | 03d6b35bbe15c4d53805ca4aa41d2e63f4642aec /gpsd.c | |
parent | 4f4e24d8330cd3b6eeed79dc1bcb6dd387d3581a (diff) | |
download | gpsd-d46da8954e81fe8eea6e7411fecfc62f44596033.tar.gz |
Introduce the flag GOODTIME_IS...
...to mark that the device has a good time even if it does not report
a position fix. Used by the OnCore driver, e.g. when in position hold
mode.
scons check passes
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1517,7 +1517,8 @@ 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 ( 0 >= 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"); } else if (isnan(device->newdata.time)) { |