diff options
author | root <root@lab.panaceas.james.local> | 2019-02-19 18:08:31 +0000 |
---|---|---|
committer | root <root@lab.panaceas.james.local> | 2019-02-19 18:08:31 +0000 |
commit | 9bbf1d200534cd946c4776e29457f989147b45b2 (patch) | |
tree | 6d167a3bede4ae9da3912562ad9fb5baf76d6770 /app/dcf77.c | |
parent | b3c6320899d6b27899ab3c67c745e8d3b29af3a2 (diff) | |
download | clock-9bbf1d200534cd946c4776e29457f989147b45b2.tar.gz clock-9bbf1d200534cd946c4776e29457f989147b45b2.tar.bz2 clock-9bbf1d200534cd946c4776e29457f989147b45b2.zip |
everything working, even with fucked phy
Diffstat (limited to 'app/dcf77.c')
-rw-r--r-- | app/dcf77.c | 6 |
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 |