From ccdce3508ca330e1c2af7fe187abbc5137a72d46 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 24 Oct 2025 14:37:29 -0700 Subject: [PATCH] must still be in ram on 8266 --- esphome/components/sntp/sntp_component.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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};