]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
refclock_neoclock4x.c:
authorClaas Hilbrecht <hilbrecht@ntp.org>
Thu, 10 Jul 2003 08:03:01 +0000 (10:03 +0200)
committerClaas Hilbrecht <hilbrecht@ntp.org>
Thu, 10 Jul 2003 08:03:01 +0000 (10:03 +0200)
  fix status reporting, update driver to v1.13

bk: 3f0d1db5hXBt6kk_Whfjk4N1H_vYmg

ntpd/refclock_neoclock4x.c

index 326dc27c0f465cb723487bb7d0cd36aa0b0f13e7..3309408f1720a7e7420f1f8bdd43f0407531d595 100644 (file)
@@ -3,7 +3,7 @@
  * Refclock_neoclock4x.c
  * - NeoClock4X driver for DCF77 or FIA Timecode
  *
- * Date: 2003-01-10 v1.12
+ * Date: 2003-07-07 v1.13
  *
  * see http://www.linum.com/redir/jump/id=neoclock4x&action=redir
  * for details about the NeoClock4X device
@@ -434,6 +434,7 @@ neoclock4x_receive(struct recvbuf *rbufp)
 
   /* read last received timecode */
   pp->lencode = refclock_gtlin(rbufp, pp->a_lastcode, BMAX, &pp->lastrec);
+  pp->leap = LEAP_NOWARNING;
 
   if(NEOCLOCK4X_TIMECODELEN != pp->lencode)
     {
@@ -601,6 +602,9 @@ neoclock4x_receive(struct recvbuf *rbufp)
     }
   refclock_receive(peer);
 
+  /* report good status */
+  refclock_report(peer, CEVNT_NOMINAL);
+
   record_clock_stats(&peer->srcadr, pp->a_lastcode);
 }
 
@@ -1049,4 +1053,9 @@ int refclock_neoclock4x_bs;
  * - replaced ldiv
  * - add code to support FreeBSD
  *
+ * 2003/07/07 cjh
+ * Revision 1.13
+ * - fix reporting of clock status
+ *   changes. previously a bad clock
+ *   status was never reset.
  */