summaryrefslogtreecommitdiffstats
path: root/app/msf.c
diff options
context:
space:
mode:
authorroot <root@lab.ourano.james.local>2021-02-25 19:12:38 +0000
committerroot <root@lab.ourano.james.local>2021-02-25 19:12:38 +0000
commit6d3a824e1cdae6e28146b7de380724b49488f3c2 (patch)
treeb8865608c9749e4251b316b74484b5151f2e683b /app/msf.c
parent0548136a4c886830414fb575d9d0daa7f1a7d170 (diff)
downloadclock-6d3a824e1cdae6e28146b7de380724b49488f3c2.tar.gz
clock-6d3a824e1cdae6e28146b7de380724b49488f3c2.tar.bz2
clock-6d3a824e1cdae6e28146b7de380724b49488f3c2.zip
tim
Diffstat (limited to 'app/msf.c')
-rw-r--r--app/msf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/msf.c b/app/msf.c
index 9d8db3f..ab85cfe 100644
--- a/app/msf.c
+++ b/app/msf.c
@@ -171,7 +171,7 @@ void msf_dispatch (void)
if (v) {
pulse_w = now - last_0;
- pulse_w /= (HZ / 1000);
+ pulse_w /= (HW_CLOCK_HZ / 1000);
if (pulse_w > 300) {
last_s = now;
@@ -183,7 +183,7 @@ void msf_dispatch (void)
} else {
pulse_w = now - last_1;
- pulse_w /= (HZ / 1000);
+ pulse_w /= (HW_CLOCK_HZ / 1000);
if (pulse_w > 400) {
had_m = 1;
@@ -194,7 +194,7 @@ void msf_dispatch (void)
}
offset = now - last_s;
- offset /= (HZ / 1000);
+ offset /= (HW_CLOCK_HZ / 1000);
if (is_s) {