diff --git a/esphome/components/sntp/sntp_component.h b/esphome/components/sntp/sntp_component.h index bd6877cc5c..d22d7c669d 100644 --- a/esphome/components/sntp/sntp_component.h +++ b/esphome/components/sntp/sntp_component.h @@ -34,7 +34,9 @@ class SNTPComponent : public time::RealTimeClock { void time_synced(); protected: - // Store const char pointers - compiler stores string literals in flash on all platforms + // Store const char pointers to string literals + // ESP8266: strings in rodata (RAM), but avoids std::string overhead (~24 bytes each) + // Other platforms: strings in flash std::array servers_; bool has_time_{false};