diff options
author | Gary E. Miller <gem@rellim.com> | 2016-04-13 17:46:17 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-04-13 17:46:17 -0700 |
commit | 46abff44d4df18ffe5d7c79df77fc116d75cdad2 (patch) | |
tree | c0e77fc7acee0ab1cba51722cf5b0bb2fbcab221 /gpsd.h-tail | |
parent | 2f49ed55327c7ca9d5211f6ae5e4fe0f2e1812e1 (diff) | |
download | gpsd-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.h-tail')
-rw-r--r-- | gpsd.h-tail | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail index 7e0a2e5a..4a15d34b 100644 --- a/gpsd.h-tail +++ b/gpsd.h-tail @@ -221,6 +221,8 @@ extern int packet_sniff(struct gps_lexer_t *); #define GPSD_CONFIDENCE CEP95_SIGMA #define NTPSHMSEGS (MAX_DEVICES * 2) /* number of NTP SHM segments */ +#define NTP_MIN_FIXES 3 /* # fixes to wait for before shipping NTP time */ + #define AIVDM_CHANNELS 2 /* A, B */ |