bugfix timesync.cpp
This commit is contained in:
parent
313c75ac41
commit
2b82223d3d
@ -216,11 +216,7 @@ int recv_timesync_ans(uint8_t seq_no, uint8_t buf[], uint8_t buf_len) {
|
||||
// adjust system time, calibrate RTC and RTC_INT pps
|
||||
void IRAM_ATTR setMyTime(uint32_t t_sec, uint16_t t_msec) {
|
||||
|
||||
time_t time_to_set = (time_t)t_sec;
|
||||
|
||||
//#if (!defined GPS_INT && !defined RTC_INT)
|
||||
// time_to_set++;
|
||||
//#endif
|
||||
time_t time_to_set = (time_t)(t_sec + 1);
|
||||
|
||||
ESP_LOGD(TAG, "[%0.3f] Calculated UTC epoch time: %d.%03d sec",
|
||||
millis() / 1000.0, time_to_set, t_msec);
|
||||
|
Loading…
Reference in New Issue
Block a user