diff options
author | root <root@lab.ourano.james.local> | 2021-02-25 19:12:38 +0000 |
---|---|---|
committer | root <root@lab.ourano.james.local> | 2021-02-25 19:12:38 +0000 |
commit | 6d3a824e1cdae6e28146b7de380724b49488f3c2 (patch) | |
tree | b8865608c9749e4251b316b74484b5151f2e683b /app/dcf77.c | |
parent | 0548136a4c886830414fb575d9d0daa7f1a7d170 (diff) | |
download | clock-6d3a824e1cdae6e28146b7de380724b49488f3c2.tar.gz clock-6d3a824e1cdae6e28146b7de380724b49488f3c2.tar.bz2 clock-6d3a824e1cdae6e28146b7de380724b49488f3c2.zip |
tim
Diffstat (limited to 'app/dcf77.c')
-rw-r--r-- | app/dcf77.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/dcf77.c b/app/dcf77.c index fc2dcda..124eea5 100644 --- a/app/dcf77.c +++ b/app/dcf77.c @@ -124,7 +124,7 @@ void dcf77_dispatch (void) { static uint32_t last_0, last_1, last_s; static int second, bit, had_m; - uint32_t pulse_w, offset; + uint32_t pulse_w,offset ; static uint64_t abs; int is_s = 0; @@ -147,7 +147,7 @@ void dcf77_dispatch (void) if (v) { pulse_w = now - last_0; - pulse_w /= (HZ / 1000); + pulse_w /= (HW_CLOCK_HZ / 1000); last_1 = now; @@ -165,7 +165,7 @@ void dcf77_dispatch (void) } else { pulse_w = now - last_1; - pulse_w /= (HZ / 1000); + pulse_w /= (HW_CLOCK_HZ / 1000); if (pulse_w > 150) bit = 1; @@ -182,7 +182,7 @@ void dcf77_dispatch (void) } offset = now - last_s; - offset /= (HZ / 1000); + offset /= (HW_CLOCK_HZ / 1000); if (is_s) { abs = abs_extend (now); |