From 29ff4f779a37019c5218145cb15b036b51fc5e25 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Thu, 14 Jun 2012 15:53:27 +0100 Subject: [PATCH] Adding write(str) and write(buf, size) for USB CDC. So that they work on the Leonardo. http://code.google.com/p/arduino/issues/detail?id=958 --- cores/arduino/USBAPI.h | 1 + 1 file changed, 1 insertion(+) diff --git a/cores/arduino/USBAPI.h b/cores/arduino/USBAPI.h index d5abdb6..eb2e593 100644 --- a/cores/arduino/USBAPI.h +++ b/cores/arduino/USBAPI.h @@ -39,6 +39,7 @@ public: virtual int read(void); virtual void flush(void); virtual size_t write(uint8_t); + using Print::write; // pull in write(str) and write(buf, size) from Print operator bool(); }; extern Serial_ Serial;