From a08a2a92a4b0976677cd855eb00623b369913631 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Wed, 2 Mar 2022 10:52:13 +0100 Subject: [PATCH] timekeeper.cpp: fix dcf77 #ifdef --- src/timekeeper.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/timekeeper.cpp b/src/timekeeper.cpp index ff332151..d51d1570 100644 --- a/src/timekeeper.cpp +++ b/src/timekeeper.cpp @@ -259,6 +259,10 @@ void clock_loop(void *taskparameter) { // ClockTask #ifdef HAS_TWO_LED static bool led1_state = false; #endif +#ifdef HAS_DCF77 + uint64_t ClockPulse = 0; + int8_t ClockMinute = -1; +#endif // output the next second's pulse/telegram after pps arrived for (;;) { @@ -293,9 +297,6 @@ void clock_loop(void *taskparameter) { // ClockTask #elif defined HAS_DCF77 - uint64_t ClockPulse = 0; - int8_t ClockMinute = -1; - // load new frame if second 59 is reached if (t.tm_sec == 0) { ClockMinute = t.tm_min;