From 7562af17524fe29c1897a99811810cfda9cb3825 Mon Sep 17 00:00:00 2001 From: Chris--A Date: Fri, 22 May 2015 23:00:07 +1000 Subject: Optimize printLn calls. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cores/arduino/Print.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cores/arduino/Print.cpp') 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) -- cgit v1.2.3-18-g5258