1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

Merge pull request #3211 from Chris--A/println-optimize

Println optimize
This commit is contained in:
Martino Facchin 2015-05-28 10:24:12 +02:00
commit 9d13023075
2 changed files with 2 additions and 6 deletions

View File

@ -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)

View File

@ -115,9 +115,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)