From a3b7e95e7afa1f61769368e8f5508921e56cd262 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Sat, 2 Mar 2019 21:25:22 +0100 Subject: [PATCH] timekeeper.cpp bugfix dcf77 frame --- src/timekeeper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/timekeeper.cpp b/src/timekeeper.cpp index 8a40f56e..fe5b3920 100644 --- a/src/timekeeper.cpp +++ b/src/timekeeper.cpp @@ -189,8 +189,8 @@ 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 + SECS_PER_MIN + 1) // next minute +#define nextsec(t) (t + 1) // next second +#define nextmin(t) (t + DCF77_FRAME_SIZE + 1) // next minute uint32_t printtime; time_t t = *((time_t *)taskparameter); // UTC time seconds