aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2013-12-24 13:21:42 +0100
committerMatthijs Kooijman <matthijs@stdin.nl>2013-12-24 13:22:43 +0100
commit94cf4c2830fd6fb639c4cdc4c2efe0d28f8bc6c1 (patch)
treeaf2c0322376a96d58d75fb7f16a90cdd1b793beb
parent0fd40026074a155c708d6312b2ddfeb2d75622f6 (diff)
Remove unneeded casts in Print::write(const String&)
Now that Print::write(const char*) is also available, these casts are no longer needed.
-rw-r--r--cores/arduino/Print.cpp2
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[])