timekeeper.cpp bugfix
This commit is contained in:
parent
9822116429
commit
7349a876e1
@ -195,7 +195,6 @@ void clock_loop(void *taskparameter) { // ClockTask
|
|||||||
// caveat: don't use now() in this task, it will cause a race condition
|
// 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!
|
// 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
|
#define nextmin(t) (t + DCF77_FRAME_SIZE + 1) // next minute
|
||||||
|
|
||||||
uint32_t printtime;
|
uint32_t printtime;
|
||||||
@ -220,7 +219,7 @@ void clock_loop(void *taskparameter) { // ClockTask
|
|||||||
|
|
||||||
#if defined HAS_IF482
|
#if defined HAS_IF482
|
||||||
|
|
||||||
IF482_Pulse(nextsec(t));
|
IF482_Pulse(t);
|
||||||
|
|
||||||
#elif defined HAS_DCF77
|
#elif defined HAS_DCF77
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user