From: Harlan Stenn Date: Wed, 19 Jan 2011 07:03:53 +0000 (-0500) Subject: Lose the RANGEGATE check in PPS, from Dave Mills X-Git-Tag: NTP_4_2_7P120~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2e5b52a25c4be8c872a6c63a479ecb6fc496552;p=thirdparty%2Fntp.git Lose the RANGEGATE check in PPS, from Dave Mills bk: 4d368cd9tsR9RntwadbBnURZBgUYzg --- diff --git a/ChangeLog b/ChangeLog index f7dcfceb1..f99c7239c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* Lose the RANGEGATE check in PPS, from Dave Mills. * ACTS refclock cleanup from Dave Mills. * Documentation updates from Dave Mills. (4.2.7p119) 2011/01/18 Released by Harlan Stenn diff --git a/include/refclock_atom.h b/include/refclock_atom.h index 9afce0207..7d83a0a0b 100644 --- a/include/refclock_atom.h +++ b/include/refclock_atom.h @@ -2,7 +2,6 @@ * Definitions for the atom driver and its friends */ #define NANOSECOND 1000000000 /* one second (ns) */ -#define RANGEGATE 500000 /* range gate (ns) */ struct refclock_atom { pps_handle_t handle; diff --git a/ntpd/ntp_refclock.c b/ntpd/ntp_refclock.c index 24809fde8..16fc6d268 100644 --- a/ntpd/ntp_refclock.c +++ b/ntpd/ntp_refclock.c @@ -1322,16 +1322,6 @@ refclock_pps( ap->ts = pps_info.clear_timestamp; else return (0); - - /* - * There can be zero, one or two PPS pulses between polls, - * depending on the poll interval relative to the PPS interval. - * The pulse must be newer and within the range gate relative - * to the last pulse. - */ - if (ap->ts.tv_sec <= timeout.tv_sec || abs(ap->ts.tv_nsec - - timeout.tv_nsec) > RANGEGATE) - return (0); /* * Convert to signed fraction offset and stuff in median filter.