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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user