From 7349a876e1971cd6a491e45c06954df108ab2436 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Thu, 7 Mar 2019 00:08:53 +0100 Subject: [PATCH] timekeeper.cpp bugfix --- src/timekeeper.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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