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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy