]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Lose the RANGEGATE check in PPS, from Dave Mills
authorHarlan Stenn <stenn@ntp.org>
Wed, 19 Jan 2011 07:03:53 +0000 (02:03 -0500)
committerHarlan Stenn <stenn@ntp.org>
Wed, 19 Jan 2011 07:03:53 +0000 (02:03 -0500)
bk: 4d368cd9tsR9RntwadbBnURZBgUYzg

ChangeLog
include/refclock_atom.h
ntpd/ntp_refclock.c

index f7dcfceb12feab9460bf2b7c24290839716a9cd0..f99c7239cc997cc3c2baafa16333e7bc6406484d 100644 (file)
--- 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 <stenn@ntp.org>
index 9afce0207ff8269eaa48d36d5a31556df97462c7..7d83a0a0b3dfbe2a17ecf469d5e99739d100c7bd 100644 (file)
@@ -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;
index 24809fde83eb476427b155581b51d1812c06aacc..16fc6d2688b2a6d8ef814fe0ca223ceb1fae14af 100644 (file)
@@ -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.