Skip to content

Commit

Permalink
timesync.cpp 1sec delta correction
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberman54 committed Apr 16, 2019
1 parent e5ce70b commit 0cdc030
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/timesync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +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) {

// advance time 1 sec wait time
time_t time_to_set = (time_t)(t_sec + 1);
time_t time_to_set = (time_t)t_sec;

//#if (!defined GPS_INT && !defined RTC_INT)
// time_to_set++;
Expand Down

0 comments on commit 0cdc030

Please sign in to comment.