diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2011-06-25 11:40:12 -0400 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2011-06-25 11:40:12 -0400 |
commit | adcd53451b48d7058fd8037250c3033a8c38b97d (patch) | |
tree | d59b4c6c842f90a7170666ac9081f162ecf623b1 /cores/arduino/Print.cpp | |
parent | f65e054eddf947f73290a338644b88516dcc95e9 (diff) | |
parent | a239d2c541094ef5445159360ae5d2d6a93dbf00 (diff) |
Merge branch 'new-extension' into platforms
Diffstat (limited to 'cores/arduino/Print.cpp')
-rwxr-xr-x | cores/arduino/Print.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cores/arduino/Print.cpp b/cores/arduino/Print.cpp index 0a580b7..06ac52a 100755 --- a/cores/arduino/Print.cpp +++ b/cores/arduino/Print.cpp @@ -117,6 +117,11 @@ void Print::println(const __FlashStringHelper *ifsh) println(); } +void Print::print(const Printable& x) +{ + x.printTo(*this); +} + void Print::println(void) { print('\r'); @@ -177,6 +182,12 @@ void Print::println(double n, int digits) println(); } +void Print::println(const Printable& x) +{ + print(x); + println(); +} + // Private Methods ///////////////////////////////////////////////////////////// void Print::printNumber(unsigned long n, uint8_t base) { |