Skip to content

Commit 527c7c2

Browse files
committed
Updated printLn on SAM core
1 parent c617562 commit 527c7c2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

hardware/arduino/sam/cores/arduino/Print.cpp

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

116116
size_t Print::println(void)
117117
{
118-
size_t n = print('\r');
119-
n += print('\n');
120-
return n;
118+
return write("\r\n");
121119
}
122120

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

0 commit comments

Comments
 (0)