Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7d91ced

Browse filesBrowse files
Add String::concat(const uint8_t *, unsigned int) version
This just calls the char* version, but allows calling the method with a uint8_t* as well (which is not uncommon for buffers).
1 parent c79f722 commit 7d91ced
Copy full SHA for 7d91ced

File tree

1 file changed

+1
-0
lines changed
Filter options

1 file changed

+1
-0
lines changed

‎hardware/arduino/avr/cores/arduino/WString.h

Copy file name to clipboardExpand all lines: hardware/arduino/avr/cores/arduino/WString.h
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ class String
100100
unsigned char concat(const String &str);
101101
unsigned char concat(const char *cstr);
102102
unsigned char concat(const char *cstr, unsigned int length);
103+
unsigned char concat(const uint8_t *cstr, unsigned int length) {return concat((const char*)cstr, length);}
103104
unsigned char concat(char c);
104105
unsigned char concat(unsigned char c);
105106
unsigned char concat(int num);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.