chiark / gitweb /
Comment on pulse width and adjust advance rate.
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 11 Nov 2018 01:49:04 +0000 (01:49 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Sun, 11 Nov 2018 01:49:04 +0000 (01:49 +0000)
Both based on the spec for Post Office clock 26 mark 6.  This
specifies the pulse width (200-500 ms) and the advance rate (one pulse
per second).

clunk.c

diff --git a/clunk.c b/clunk.c
index f3582499c2a3e0c1a22a689d740cc3cbc68d1744..0b2fdc9d743555b0b1ea0a5b775b63adf43781ee 100644 (file)
--- a/clunk.c
+++ b/clunk.c
@@ -4,6 +4,9 @@
 #include <time.h>
 #include <unistd.h>
 
+/*
+ * Post Office specification 479B requires a pulse length of 200-500 ms.
+ */
 static long const pulsewidth = 250000000; /* nanoseconds */
 
 /*
@@ -120,7 +123,7 @@ run()
                tick = 30;
                switch (need_adjust(&tm)) {
                case ADVANCE:
-                       tick = 2;
+                       tick = 1;
                        /* FALLTHROUGH */
                case TICK:
                        pulse();