We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e262a5 commit 88a2ca1Copy full SHA for 88a2ca1
hardware/arduino/avr/cores/arduino/Print.cpp
@@ -53,11 +53,7 @@ size_t Print::print(const __FlashStringHelper *ifsh)
53
54
size_t Print::print(const String &s)
55
{
56
- size_t n = 0;
57
- for (uint16_t i = 0; i < s.length(); i++) {
58
- n += write(s[i]);
59
- }
60
- return n;
+ return write(reinterpret_cast<const uint8_t*>(s.c_str()), s.length());
61
}
62
63
size_t Print::print(const char str[])
0 commit comments