Remove unneeded casts in Print::write(const String&)
Now that Print::write(const char*) is also available, these casts are no longer needed.
This commit is contained in:
parent
5e376447de
commit
233519419b
|
@ -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[])
|
||||
|
|
Loading…
Reference in New Issue