log sent timediff

This commit is contained in:
Marius Gripp 2019-09-02 16:55:29 +02:00
parent 004444dea3
commit 592c9d6ede

View File

@ -282,6 +282,7 @@ void IRAM_ATTR setMyTime(uint32_t t_sec, uint16_t t_msec,
payload.reset(); payload.reset();
payload.addTimeDiff(timediff_ms); payload.addTimeDiff(timediff_ms);
SendPayload(TIMEDIFFPORT, prio_high); SendPayload(TIMEDIFFPORT, prio_high);
ESP_LOGI(TAG, "timediff_ms: %d", timediff_ms);
timeSource = mytimesource; // set global variable timeSource = mytimesource; // set global variable
timesyncer.attach(TIME_SYNC_INTERVAL * 60, timeSync); timesyncer.attach(TIME_SYNC_INTERVAL * 60, timeSync);