diff --git a/src/timekeeper.cpp b/src/timekeeper.cpp index 5b2da09c..0c1c232c 100644 --- a/src/timekeeper.cpp +++ b/src/timekeeper.cpp @@ -195,7 +195,6 @@ void clock_loop(void *taskparameter) { // ClockTask // caveat: don't use now() in this task, it will cause a race condition // due to concurrent access to i2c bus for setting rtc via SyncProvider! -#define nextsec(t) (t + 1) // next second #define nextmin(t) (t + DCF77_FRAME_SIZE + 1) // next minute uint32_t printtime; @@ -220,7 +219,7 @@ void clock_loop(void *taskparameter) { // ClockTask #if defined HAS_IF482 - IF482_Pulse(nextsec(t)); + IF482_Pulse(t); #elif defined HAS_DCF77