From bb2a306c129e7595e9e9562a8717bc62fa53855b Mon Sep 17 00:00:00 2001 From: Drzony Date: Wed, 25 Nov 2020 13:48:49 +0100 Subject: [PATCH] PROGMEM compatibility changes to String Changed contructor to use strlen_P --- cores/esp8266/WString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp8266/WString.cpp b/cores/esp8266/WString.cpp index 8eaa88d91d..07ab99b2cf 100644 --- a/cores/esp8266/WString.cpp +++ b/cores/esp8266/WString.cpp @@ -32,7 +32,7 @@ String::String(const char *cstr) { init(); if (cstr) - copy(cstr, strlen(cstr)); + copy(cstr, strlen_P(cstr)); } String::String(const String &value) {