diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2012-06-14 15:53:27 +0100 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2012-06-14 15:54:13 +0100 |
commit | 29ff4f779a37019c5218145cb15b036b51fc5e25 (patch) | |
tree | 002ef4018d2e9ab111518e65b576af7bd0458308 /cores/arduino/USBAPI.h | |
parent | 3436ca97cbccd9068c79bf201cb367de60789f37 (diff) |
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
Diffstat (limited to 'cores/arduino/USBAPI.h')
-rw-r--r-- | cores/arduino/USBAPI.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |