Skip to content

Commit 29ff4f7

Browse files
committed
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
1 parent 3436ca9 commit 29ff4f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/arduino/USBAPI.h

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class Serial_ : public Stream
3939
virtual int read(void);
4040
virtual void flush(void);
4141
virtual size_t write(uint8_t);
42+
using Print::write; // pull in write(str) and write(buf, size) from Print
4243
operator bool();
4344
};
4445
extern Serial_ Serial;

0 commit comments

Comments
 (0)