Update esphome/components/sntp/sntp_component.h

This commit is contained in:
Anton Sergunov 2024-06-10 12:25:08 +06:00 committed by GitHub
parent 7523327502
commit 1de1290bbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,7 @@ class SNTPComponent : public time::RealTimeClock {
std::string servers_[3]; std::string servers_[3];
protected: protected:
#if defined(USE_ESP_IDF) #if !defined(USE_ESP_IDF)
bool has_time_{false}; bool has_time_{false};
#endif #endif
bool servers_was_setup_{false}; bool servers_was_setup_{false};