aboutsummaryrefslogtreecommitdiff
path: root/cores
diff options
context:
space:
mode:
authorMartino Facchin <facchinm@users.noreply.github.com>2015-05-28 10:24:12 +0200
committerMartino Facchin <facchinm@users.noreply.github.com>2015-05-28 10:24:12 +0200
commitb8787565db2abd887ec51a668a801d989112db4d (patch)
treef565e4eab895a642a8cb5b24d4aab85f3b0a581f /cores
parent39c65393b8f88d9729caeac3f928d7cfaf811fdf (diff)
parent7562af17524fe29c1897a99811810cfda9cb3825 (diff)
Merge pull request #3211 from Chris--A/println-optimize
Println optimize
Diffstat (limited to 'cores')
-rw-r--r--cores/arduino/Print.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/cores/arduino/Print.cpp b/cores/arduino/Print.cpp
index 5df5630..782d50b 100644
--- a/cores/arduino/Print.cpp
+++ b/cores/arduino/Print.cpp
@@ -122,9 +122,7 @@ size_t Print::print(const Printable& x)
size_t Print::println(void)
{
- size_t n = print('\r');
- n += print('\n');
- return n;
+ return write("\r\n");
}
size_t Print::println(const String &s)