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;