aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Print.cpp
diff options
context:
space:
mode:
authorChris--A <chris@genx.biz>2015-05-22 23:00:07 +1000
committerChris--A <chris@genx.biz>2015-05-22 23:00:07 +1000
commit7562af17524fe29c1897a99811810cfda9cb3825 (patch)
tree1a2f4a4133b564dd9bd42e6944179ad07edff856 /cores/arduino/Print.cpp
parentb40f171220b46e63165deaffc497c080e98f041a (diff)
Optimize printLn calls.
Diffstat (limited to 'cores/arduino/Print.cpp')
-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)