From fe0af9da5855925deae802ac02a9adc593759119 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sun, 11 Nov 2018 01:49:04 +0000 Subject: [PATCH] Comment on pulse width and adjust advance rate. 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clunk.c b/clunk.c index f358249..0b2fdc9 100644 --- a/clunk.c +++ b/clunk.c @@ -4,6 +4,9 @@ #include #include +/* + * 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(); -- 2.30.2