]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Remove hardcoded 1/960 s. fudge for <CR> transmission time at 9600 8n1
authorDave Hart <hart@ntp.org>
Tue, 24 May 2011 05:27:19 +0000 (05:27 +0000)
committerDave Hart <hart@ntp.org>
Tue, 24 May 2011 05:27:19 +0000 (05:27 +0000)
  from WWVB/Spectracom driver introduced in 4.2.7p169.

bk: 4ddb41b7LCuexebxJsL5tbqdQjrZ2A

ChangeLog
ntpd/refclock_wwvb.c

index eb4b755b4ec67165eee82054d155eb33ee327991..3672122e4665dbd2e126a0daad6895adb5c808a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,5 @@
+* Remove hardcoded 1/960 s. fudge for <CR> transmission time at 9600 8n1
+  from WWVB/Spectracom driver introduced in 4.2.7p169.
 (4.2.7p171) 2011/05/23 Released by Harlan Stenn <stenn@ntp.org>
 * Eliminate warnings about shadowing global "basename" on Linux.
 * Use filegen_config() consistently when changing filegen options.
index c65726dc8fcf1e6b3f5d3a63687d58839f712eb4..f2856b0303559a159ef7fbf97d413668e8bc11ff 100644 (file)
@@ -249,7 +249,6 @@ wwvb_receive(
        struct recvbuf *rbufp
        )
 {
-       const l_fp one_char_time = { { 0 }, { (u_int32)(FRAC / 960) } };
        struct wwvbunit *up;
        struct refclockproc *pp;
        struct peer *peer;
@@ -313,12 +312,6 @@ wwvb_receive(
        if (L_ISZERO(&pp->lastrec))
                return;
 
-       /*
-        * The start of the <CR> is the on-time event, while our
-        * timestamp reflects the end of that <CR> at best. Adjust.
-        */
-       L_SUB(&pp->lastrec, &one_char_time);
-
        /*
         * We get down to business, check the timecode format and decode
         * its contents. This code uses the timecode length to determine