From 30ebf7f92483bb57076ba571dcd04b4e8bb94872 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Fri, 26 Jun 2015 17:16:54 +0200 Subject: fix HID descriptors bigger than 127 bytes --- cores/arduino/PluggableUSB.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cores/arduino/PluggableUSB.h') diff --git a/cores/arduino/PluggableUSB.h b/cores/arduino/PluggableUSB.h index f729deb..b9a27c1 100644 --- a/cores/arduino/PluggableUSB.h +++ b/cores/arduino/PluggableUSB.h @@ -28,8 +28,8 @@ typedef struct { bool (*setup)(Setup& setup, u8 i); - int8_t (*getInterface)(u8* interfaceNum); - int8_t (*getDescriptor)(int8_t t); + int (*getInterface)(u8* interfaceNum); + int (*getDescriptor)(int8_t t); int8_t numEndpoints; int8_t numInterfaces; uint8_t *endpointType; @@ -50,9 +50,9 @@ public: int8_t PUSB_AddFunction(PUSBListNode *node, u8 *interface); -int8_t PUSB_GetInterface(u8* interfaceNum); +int PUSB_GetInterface(u8* interfaceNum); -int8_t PUSB_GetDescriptor(int8_t t); +int PUSB_GetDescriptor(int8_t t); bool PUSB_Setup(Setup& setup, u8 i); -- cgit v1.2.3-18-g5258