diff options
author | Matthijs Kooijman <matthijs@stdin.nl> | 2013-12-24 13:21:42 +0100 |
---|---|---|
committer | Matthijs Kooijman <matthijs@stdin.nl> | 2013-12-24 13:22:43 +0100 |
commit | 94cf4c2830fd6fb639c4cdc4c2efe0d28f8bc6c1 (patch) | |
tree | af2c0322376a96d58d75fb7f16a90cdd1b793beb /cores | |
parent | 0fd40026074a155c708d6312b2ddfeb2d75622f6 (diff) |
Remove unneeded casts in Print::write(const String&)
Now that Print::write(const char*) is also available, these casts are no
longer needed.
Diffstat (limited to 'cores')
-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[]) |