timesync.cpp: fix +1 second bug
This commit is contained in:
parent
be208ab539
commit
64222bf8b3
@ -234,7 +234,6 @@ void IRAM_ATTR setMyTime(uint32_t t_sec, uint16_t t_msec,
|
|||||||
#if (!defined GPS_INT && !defined RTC_INT)
|
#if (!defined GPS_INT && !defined RTC_INT)
|
||||||
timerWrite(ppsIRQ, 0); // reset pps timer
|
timerWrite(ppsIRQ, 0); // reset pps timer
|
||||||
CLOCKIRQ(); // fire clock pps, this advances time 1 sec
|
CLOCKIRQ(); // fire clock pps, this advances time 1 sec
|
||||||
time_to_set--;
|
|
||||||
#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