1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-07 06:01:35 +03:00

PROGMEM compatibility changes to String (#7724)

Changed contructor to use strlen_P
This commit is contained in:
Drzony
2020-11-25 14:20:29 +01:00
committed by GitHub
parent 32dbc2cb3d
commit 8c7fd6aac1

View File

@ -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) {