From 6d315c6df98187d7a5e713dd678354eb3276a214 Mon Sep 17 00:00:00 2001 From: Anton Sergunov Date: Thu, 9 May 2024 04:20:34 +0000 Subject: [PATCH] Print tv --- esphome/components/sntp/sntp_component.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/esphome/components/sntp/sntp_component.cpp b/esphome/components/sntp/sntp_component.cpp index 489a96781e..231c56edb4 100644 --- a/esphome/components/sntp/sntp_component.cpp +++ b/esphome/components/sntp/sntp_component.cpp @@ -94,6 +94,10 @@ void SNTPComponent::loop() { ESP_LOGD(TAG, "Time sync in progress"); break; } + + if (item.first) { + ESP_LOGD(TAG, "Time value is %ds %dus", item.first->tv_sec, item.first->tv_usec); + } } callback_args_.clear();