1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-12 14:53:49 +01:00

Reduce static RAM usage (#2140)

This commit is contained in:
Oxan van Leeuwen
2021-08-23 10:43:54 +02:00
committed by GitHub
parent 2f33cd2db5
commit d71996e58d
6 changed files with 113 additions and 82 deletions

View File

@@ -56,9 +56,8 @@ void SNTPComponent::loop() {
if (!time.is_valid())
return;
char buf[128];
time.strftime(buf, sizeof(buf), "%c");
ESP_LOGD(TAG, "Synchronized time: %s", buf);
ESP_LOGD(TAG, "Synchronized time: %d-%d-%d %d:%d:%d", time.year, time.month, time.day_of_month, time.hour,
time.minute, time.second);
this->time_sync_callback_.call();
this->has_time_ = true;
}