mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
PROGMEM compatibility changes to String (#7724)
Changed contructor to use strlen_P
This commit is contained in:
parent
32dbc2cb3d
commit
8c7fd6aac1
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user