From: Ben Harris Date: Sun, 11 Nov 2018 01:49:04 +0000 (+0000) Subject: Comment on pulse width and adjust advance rate. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=fe0af9da5855925deae802ac02a9adc593759119;p=clunk.git 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). --- 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();