timesync.cpp: bugfix esp32 hw timer
This commit is contained in:
parent
abe339f355
commit
20c69789f0
@ -233,8 +233,8 @@ int IRAM_ATTR adjustTime(uint32_t t_sec, uint16_t t_msec) {
|
|||||||
|
|
||||||
#if (!defined GPS_INT && !defined RTC_INT)
|
#if (!defined GPS_INT && !defined RTC_INT)
|
||||||
// sync pps timer to top of second
|
// sync pps timer to top of second
|
||||||
timerRestart(ppsIRQ); // reset pps timer
|
timerWrite(ppsIRQ, 0); // reset pps timer
|
||||||
CLOCKIRQ(); // fire clock pps, advances time 1 sec
|
CLOCKIRQ(); // fire clock pps, this advances time 1 sec
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
setTime(time_to_set); // set the time on top of second
|
setTime(time_to_set); // set the time on top of second
|
||||||
|
Loading…
Reference in New Issue
Block a user