Skip to content

Commit 8ae38a5

Browse files
Remove unneeded casts in Print::write(const String&)
Now that Print::write(const char*) is also available, these casts are no longer needed.
1 parent 7cc545a commit 8ae38a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hardware/arduino/avr/cores/arduino/Print.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ size_t Print::print(const __FlashStringHelper *ifsh)
5353

5454
size_t Print::print(const String &s)
5555
{
56-
return write(reinterpret_cast<const uint8_t*>(s.c_str()), s.length());
56+
return write(s.c_str(), s.length());
5757
}
5858

5959
size_t Print::print(const char str[])

0 commit comments

Comments
 (0)