From a3e3f37445aee39ef8d7c5edb5526152bd61810b Mon Sep 17 00:00:00 2001 From: Anton Sergunov Date: Fri, 7 Jun 2024 06:06:43 +0000 Subject: [PATCH] Make it build 6 --- esphome/components/sntp/sntp_component.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/sntp/sntp_component.cpp b/esphome/components/sntp/sntp_component.cpp index fd79edc363..ed7407b187 100644 --- a/esphome/components/sntp/sntp_component.cpp +++ b/esphome/components/sntp/sntp_component.cpp @@ -63,9 +63,9 @@ void SNTPComponent::dump_config() { ESP_LOGCONFIG(TAG, " Server 3: '%s'", this->server_3_.c_str()); ESP_LOGCONFIG(TAG, " Timezone: '%s'", this->timezone_.c_str()); } -void set_servers(const std::string &server_1, const std::string &server_2, const std::string &server_3) { +void SNTPComponent::set_servers(const std::string &server_1, const std::string &server_2, const std::string &server_3) { #if !defined(USE_HOST) - if (servers_was_setup_) { + if (this->servers_was_setup_) { for (uint8_t i = 0; i < 3; ++i) { const auto &buff = this->servers_[i].empty() ? nullptr : this->servers_[i].c_str(); if (buff != nullptr && buff == sntp_getservername(i)) @@ -77,7 +77,7 @@ void set_servers(const std::string &server_1, const std::string &server_2, const this->servers_ = {server_1, server_2, server_3}; #if !defined(USE_HOST) if (this->servers_was_setup_) { - setup_servers_(); + this->setup_servers_(); } #endif }