mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-14 13:41:23 +03:00
PROGMEM compatibility changes to String (#7724)
Changed contructor to use strlen_P
This commit is contained in:
@ -32,7 +32,7 @@
|
|||||||
String::String(const char *cstr) {
|
String::String(const char *cstr) {
|
||||||
init();
|
init();
|
||||||
if (cstr)
|
if (cstr)
|
||||||
copy(cstr, strlen(cstr));
|
copy(cstr, strlen_P(cstr));
|
||||||
}
|
}
|
||||||
|
|
||||||
String::String(const String &value) {
|
String::String(const String &value) {
|
||||||
|
Reference in New Issue
Block a user