File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ class String
5858 // be false).
5959 String (const char *cstr = " " );
6060 String (const char *cstr, unsigned int length);
61+ String (const uint8_t *cstr, unsigned int length) : String((const char *)cstr, length) {}
6162 String (const String &str);
6263 String (const __FlashStringHelper *str);
6364 #if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ class String
5858 // be false).
5959 String (const char *cstr = " " );
6060 String (const char *cstr, unsigned int length);
61+ String (const uint8_t *cstr, unsigned int length) : String((const char *)cstr, length) {}
6162 String (const String &str);
6263 String (const __FlashStringHelper *str);
6364 #if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
You can’t perform that action at this time.
0 commit comments