From f3e78a4a2920665b45b964049db3ebed9b8f1dc7 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Sat, 24 May 2014 00:13:07 +0200 Subject: Backported Print class from ide-1.5.x branch Close #1951 --- cores/arduino/Print.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cores/arduino/Print.h') diff --git a/cores/arduino/Print.h b/cores/arduino/Print.h index dc76150..7b53aa4 100755 --- a/cores/arduino/Print.h +++ b/cores/arduino/Print.h @@ -51,6 +51,9 @@ class Print return write((const uint8_t *)str, strlen(str)); } virtual size_t write(const uint8_t *buffer, size_t size); + size_t write(const char *buffer, size_t size) { + return write((const uint8_t *)buffer, size); + } size_t print(const __FlashStringHelper *); size_t print(const String &); -- cgit v1.2.3-18-g5258