From af635024db2b5d46d57eb5f5da959f6b4f4bf42c Mon Sep 17 00:00:00 2001 From: Zach Eveland Date: Tue, 30 Aug 2011 11:50:08 -0400 Subject: support for non-Leonardo boards is back! --- cores/arduino/HID.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cores/arduino/HID.cpp') diff --git a/cores/arduino/HID.cpp b/cores/arduino/HID.cpp index 36e9b67..cea90fc 100644 --- a/cores/arduino/HID.cpp +++ b/cores/arduino/HID.cpp @@ -20,6 +20,7 @@ #include "USBAPI.h" #include "USBDesc.h" +#if defined(USBCON) #ifdef HID_ENABLED //#define RAWHID_ENABLED @@ -419,4 +420,6 @@ size_t Keyboard_::write(uint8_t c) return 1; } -#endif \ No newline at end of file +#endif + +#endif /* if defined(USBCON) */ \ No newline at end of file -- cgit v1.2.3-18-g5258