Compilation error

This commit is contained in:
Anton Sergunov 2024-05-09 03:41:33 +00:00
parent 2c5419bc28
commit 099982dd07

View file

@ -54,9 +54,7 @@ void SNTPComponent::setup() {
sntp_set_sync_interval(this->get_update_interval());
#endif
g_sync_callback = [this](struct timeval *tv) {
this->callback_args_.push_back({tv ? *tv : {}, sntp_get_sync_status()});
};
g_sync_callback = [this](struct timeval *tv) { callback_args_.push_back({tv ? *tv : {}, sntp_get_sync_status()}); };
ESP_LOGD(TAG, "Set notification callback");
sntp_set_time_sync_notification_cb(sntp_sync_time_cb);