Skip to content

Commit

Permalink
PROGMEM compatibility changes to String
Browse files Browse the repository at this point in the history
Changed contructor to use strlen_P
  • Loading branch information
drzony committed Nov 25, 2020
1 parent 32dbc2c commit bb2a306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp8266/WString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bb2a306

Please sign in to comment.