From: Reg Clemens Date: Thu, 1 Nov 2007 06:16:36 +0000 (-0400) Subject: The oncore hardware provides a 'negative saw-tooth' the offset of the PPS signal X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f31682bef5aea4a92debd465d85597c744d9660d;p=thirdparty%2Fntp.git The oncore hardware provides a 'negative saw-tooth' the offset of the PPS signal which is on the zero crossing of its internal clock, from its true value. the refclock_oncore.c driver applies this difference to correct the time of the provided timestamp. This value was being applied correctly for the 6 and 8 channel receivers, but not for the 12 channel. This has been corrected. bk: 47296f44Tjq8QobLIpMYPmtB6T9H4A --- diff --git a/ntpd/refclock_oncore.c b/ntpd/refclock_oncore.c index c720add2ca..8cffb0c538 100644 --- a/ntpd/refclock_oncore.c +++ b/ntpd/refclock_oncore.c @@ -2422,14 +2422,14 @@ oncore_msg_BnEnHn( return; dt1 = instance->saw_tooth + instance->offset; /* dt this time step */ - instance->saw_tooth = (s_char) instance->BEHn[10]; /* update for next time Hn[10] */ + instance->saw_tooth = (s_char) instance->BEHn[14]; /* update for next time Hn[14] */ dt2 = instance->saw_tooth + instance->offset; /* dt next time step */ } else { if (instance->BEHn[21]) /* bad TRAIM */ return; dt1 = instance->saw_tooth + instance->offset; /* dt this time step */ - instance->saw_tooth = (s_char) instance->BEHn[25]; /* update for next time */ + instance->saw_tooth = (s_char) instance->BEHn[25]; /* update for next time Bn[25], En[25] */ dt2 = instance->saw_tooth + instance->offset; /* dt next time step */ }