summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-04-13 17:46:17 -0700
committerGary E. Miller <gem@rellim.com>2016-04-13 17:46:17 -0700
commit46abff44d4df18ffe5d7c79df77fc116d75cdad2 (patch)
treec0e77fc7acee0ab1cba51722cf5b0bb2fbcab221 /gpsd.c
parent2f49ed55327c7ca9d5211f6ae5e4fe0f2e1812e1 (diff)
downloadgpsd-46abff44d4df18ffe5d7c79df77fc116d75cdad2.tar.gz
Rename PPS_M IN_FIXES to NTP_MIN_FIXES
This applies to not just PPS, but all NTP reportable time. Even with a valid fix, the frist 3 times may be off. Don't send bad time to ntp/chrony. Move the definition into gpsd.h to be widely available not depending on scons options.
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 d962a18f..28148e31 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1523,7 +1523,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 ( PPS_MIN_FIXES > device->fixcnt &&
+ } else if ( NTP_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");