From 20c69789f07ca4847d88c73d063be0053081222d Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Thu, 28 Mar 2019 22:53:21 +0100 Subject: [PATCH] timesync.cpp: bugfix esp32 hw timer --- src/timesync.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/timesync.cpp b/src/timesync.cpp index 6f1f23c8..bf141814 100644 --- a/src/timesync.cpp +++ b/src/timesync.cpp @@ -233,8 +233,8 @@ int IRAM_ATTR adjustTime(uint32_t t_sec, uint16_t t_msec) { #if (!defined GPS_INT && !defined RTC_INT) // sync pps timer to top of second - timerRestart(ppsIRQ); // reset pps timer - CLOCKIRQ(); // fire clock pps, advances time 1 sec + timerWrite(ppsIRQ, 0); // reset pps timer + CLOCKIRQ(); // fire clock pps, this advances time 1 sec #endif setTime(time_to_set); // set the time on top of second