From d9a2107450bf320cdf18023d63c29286ffcc2fab Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 17 Feb 2019 19:33:41 +0100 Subject: [PATCH] clockcontroller.cpp bugfix ts variable --- platformio.ini | 2 +- src/clockcontroller.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platformio.ini b/platformio.ini index 4018585d..5532f163 100644 --- a/platformio.ini +++ b/platformio.ini @@ -67,7 +67,7 @@ lib_deps_all = build_flags_basic = -include "src/hal/${PIOENV}.h" -include "src/paxcounter.conf" - ; -w + -w '-DARDUINO_LMIC_PROJECT_CONFIG_H=../../../src/lmic_config.h' '-DCORE_DEBUG_LEVEL=${common.debug_level}' '-DLOG_LOCAL_LEVEL=${common.debug_level}' diff --git a/src/clockcontroller.cpp b/src/clockcontroller.cpp index c735af1e..dca38411 100644 --- a/src/clockcontroller.cpp +++ b/src/clockcontroller.cpp @@ -59,8 +59,8 @@ void clock_loop(void *pvParameters) { // ClockTask #elif defined HAS_DCF77 - if (ts == DCF77_FRAME_SIZE - 1) // moment to reload frame? - DCF77_Frame(t1(t)); // generate next frame + if (second(t) == DCF77_FRAME_SIZE - 1) // moment to reload frame? + DCF77_Frame(t1(t)); // generate next frame if (DCFpulse[DCF77_FRAME_SIZE] == minute(t1(t))) // do he have a recent frame?