mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 23:48:11 +01:00
Replace sntp_enabled
with esp_sntp_enabled
This commit is contained in:
parent
547517450d
commit
7523327502
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ void SNTPComponent::set_servers(const std::string &server_1, const std::string &
|
|||
}
|
||||
void SNTPComponent::update() {
|
||||
// force resync
|
||||
if (sntp_enabled()) {
|
||||
if (esp_sntp_enabled()) {
|
||||
#if defined(USE_ESP_IDF)
|
||||
ESP_LOGD(TAG, "Force resync");
|
||||
sntp_restart();
|
||||
|
|
Loading…
Reference in a new issue