From 481fdeab797d449f6b82473b1e377c495224cff7 Mon Sep 17 00:00:00 2001 From: Zach Eveland Date: Tue, 30 Aug 2011 11:04:34 -0400 Subject: CDC and HID write() routines now return non-void - brought in line with new write behavior --- cores/arduino/USBAPI.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cores/arduino/USBAPI.h') diff --git a/cores/arduino/USBAPI.h b/cores/arduino/USBAPI.h index 4d26d23..b833009 100644 --- a/cores/arduino/USBAPI.h +++ b/cores/arduino/USBAPI.h @@ -33,7 +33,7 @@ public: virtual int peek(void); virtual int read(void); virtual void flush(void); - virtual void write(uint8_t); + virtual size_t write(uint8_t); }; extern Serial_ Serial; @@ -93,7 +93,7 @@ public: Keyboard_(); void sendReport(KeyReport* keys); void setKeyMap(KeyMap* keyMap); - virtual void write(uint8_t); + virtual size_t write(uint8_t); }; extern Keyboard_ Keyboard; -- cgit v1.2.3-18-g5258