Skip to content

Commit c11e99d

Browse files
committed
Add String(const uint8_t *, unsigned int) constructor
From upstream ArduinoCore-API commit 0d83f1afc3367037dbde5323c2abd0ae1bd2c583
1 parent 328f707 commit c11e99d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: cores/esp32/WString.h

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ class String {
5656
// be false).
5757
String(const char *cstr = "");
5858
String(const char *cstr, unsigned int length);
59+
#ifdef __GXX_EXPERIMENTAL_CXX0X__
60+
String(const uint8_t *cstr, unsigned int length) : String((const char*)cstr, length) {}
61+
#endif
5962
String(const String &str);
6063
String(const __FlashStringHelper *str);
6164
#ifdef __GXX_EXPERIMENTAL_CXX0X__

0 commit comments

Comments
 (0)