diff options
Diffstat (limited to 'cores/arduino/Print.cpp')
-rwxr-xr-x | cores/arduino/Print.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cores/arduino/Print.cpp b/cores/arduino/Print.cpp index fb5afc1..6fe162d 100755 --- a/cores/arduino/Print.cpp +++ b/cores/arduino/Print.cpp @@ -19,6 +19,7 @@ Modified 23 November 2006 by David A. Mellis */ +#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> @@ -42,6 +43,11 @@ void Print::write(const uint8_t *buffer, size_t size) write(*buffer++); } +void Print::print(const String &s) +{ + print(s.toCharArray()); +} + void Print::print(const char str[]) { write(str); @@ -99,6 +105,12 @@ void Print::println(void) print('\n'); } +void Print::println(const String &s) +{ + print(s); + println(); +} + void Print::println(const char c[]) { print(c); |