Skip to content

Commit c617562

Browse files
committed
Optimize printLn calls.
1 parent 309ddbd commit c617562

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ size_t Print::print(const Printable& x)
122122

123123
size_t Print::println(void)
124124
{
125-
size_t n = print('\r');
126-
n += print('\n');
127-
return n;
125+
return write("\r\n");
128126
}
129127

130128
size_t Print::println(const String &s)

0 commit comments

Comments
 (0)