summaryrefslogtreecommitdiffstats
path: root/app/dcf77.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/dcf77.c')
-rw-r--r--app/dcf77.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/dcf77.c b/app/dcf77.c
index edc152b..361e4ca 100644
--- a/app/dcf77.c
+++ b/app/dcf77.c
@@ -34,7 +34,6 @@ void exti15_10_isr (void)
static uint8_t bits[60];
-static int time_known;
static void process_bits (uint64_t abs)
{
@@ -68,12 +67,11 @@ static void process_bits (uint64_t abs)
#if 0
pll_set_offset (dcf77_time, abs);
#endif
- time_known = 1;
printf ("DCF77: Next minute is: %02d-%02d-%02d %02d:%02d\r\n", u.year, u.month, u.mday, u.hour, u.minute);
time_print_epoch ("DCF77: ", dcf77_time);
- dump_bits("dcf77",bits);
+ dump_bits ("dcf77", bits);
}
@@ -91,7 +89,7 @@ static void report_bit (uint64_t abs, int second, int b)
static void report_time (uint64_t abs)
{
-#if 0
+#if 1
EPOCH e = pll_decompose (abs);
time_print_epoch ("DCF77: ", e);
#endif