Skip to content

Commit bb2a306

Browse files
committed
PROGMEM compatibility changes to String
Changed contructor to use strlen_P
1 parent 32dbc2c commit bb2a306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/WString.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
String::String(const char *cstr) {
3333
init();
3434
if (cstr)
35-
copy(cstr, strlen(cstr));
35+
copy(cstr, strlen_P(cstr));
3636
}
3737

3838
String::String(const String &value) {

0 commit comments

Comments
 (0)