timekeeper.cpp: fix dcf77 #ifdef
This commit is contained in:
parent
7d70b0d024
commit
a08a2a92a4
@ -259,6 +259,10 @@ void clock_loop(void *taskparameter) { // ClockTask
|
|||||||
#ifdef HAS_TWO_LED
|
#ifdef HAS_TWO_LED
|
||||||
static bool led1_state = false;
|
static bool led1_state = false;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAS_DCF77
|
||||||
|
uint64_t ClockPulse = 0;
|
||||||
|
int8_t ClockMinute = -1;
|
||||||
|
#endif
|
||||||
|
|
||||||
// output the next second's pulse/telegram after pps arrived
|
// output the next second's pulse/telegram after pps arrived
|
||||||
for (;;) {
|
for (;;) {
|
||||||
@ -293,9 +297,6 @@ void clock_loop(void *taskparameter) { // ClockTask
|
|||||||
|
|
||||||
#elif defined HAS_DCF77
|
#elif defined HAS_DCF77
|
||||||
|
|
||||||
uint64_t ClockPulse = 0;
|
|
||||||
int8_t ClockMinute = -1;
|
|
||||||
|
|
||||||
// load new frame if second 59 is reached
|
// load new frame if second 59 is reached
|
||||||
if (t.tm_sec == 0) {
|
if (t.tm_sec == 0) {
|
||||||
ClockMinute = t.tm_min;
|
ClockMinute = t.tm_min;
|
||||||
|
Loading…
Reference in New Issue
Block a user