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.cpp | |
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.cpp')
-rw-r--r-- | cores/arduino/Print.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/Print.cpp b/cores/arduino/Print.cpp index f6e499b..9a6b964 100644 --- a/cores/arduino/Print.cpp +++ b/cores/arduino/Print.cpp @@ -53,7 +53,7 @@ size_t Print::print(const __FlashStringHelper *ifsh) size_t Print::print(const String &s) { - return write(reinterpret_cast<const uint8_t*>(s.c_str()), s.length()); + return write(s.c_str(), s.length()); } size_t Print::print(const char str[]) |