diff options
author | Cristian Maglie <c.maglie@bug.st> | 2013-12-30 10:58:03 -0800 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2013-12-30 10:58:03 -0800 |
commit | 15417bab95046fa7cf165eed886e71229c7b1384 (patch) | |
tree | af2c0322376a96d58d75fb7f16a90cdd1b793beb /cores/arduino/Print.h | |
parent | dce9146485869ed6008dce30777ffd08c1f92311 (diff) | |
parent | 94cf4c2830fd6fb639c4cdc4c2efe0d28f8bc6c1 (diff) |
Merge pull request #1762 from matthijskooijman/ide-1.5.x-write-char
Support both char* and uint8* in Stream and Print
Diffstat (limited to 'cores/arduino/Print.h')
-rw-r--r-- | cores/arduino/Print.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cores/arduino/Print.h b/cores/arduino/Print.h index dc76150..7b53aa4 100644 --- a/cores/arduino/Print.h +++ b/cores/arduino/Print.h @@ -51,6 +51,9 @@ class Print return write((const uint8_t *)str, strlen(str)); } virtual size_t write(const uint8_t *buffer, size_t size); + size_t write(const char *buffer, size_t size) { + return write((const uint8_t *)buffer, size); + } size_t print(const __FlashStringHelper *); size_t print(const String &); |