diff options
author | Martino Facchin <m.facchin@arduino.cc> | 2015-06-26 17:16:54 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@arduino.cc> | 2015-07-16 13:13:51 +0200 |
commit | 30ebf7f92483bb57076ba571dcd04b4e8bb94872 (patch) | |
tree | ba6fdf59f5024617e2f7e0f0418ab1a62589037d /cores/arduino/PluggableUSB.cpp | |
parent | 3ee0fa126506c623bf45ddcfccce1bf2abd2e41e (diff) |
fix HID descriptors bigger than 127 bytes
Diffstat (limited to 'cores/arduino/PluggableUSB.cpp')
-rw-r--r-- | cores/arduino/PluggableUSB.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cores/arduino/PluggableUSB.cpp b/cores/arduino/PluggableUSB.cpp index 00f400d..970c11e 100644 --- a/cores/arduino/PluggableUSB.cpp +++ b/cores/arduino/PluggableUSB.cpp @@ -36,9 +36,9 @@ static u8 modules_count = 0; static PUSBListNode* rootNode = NULL; static PUSBListNode* lastNode = NULL; -int8_t PUSB_GetInterface(u8* interfaceNum) +int PUSB_GetInterface(u8* interfaceNum) { - int8_t ret = 0; + int ret = 0; PUSBListNode* node = rootNode; for (u8 i=0; i<modules_count; i++) { ret = node->cb->getInterface(interfaceNum); @@ -47,9 +47,9 @@ int8_t PUSB_GetInterface(u8* interfaceNum) return ret; } -int8_t PUSB_GetDescriptor(int8_t t) +int PUSB_GetDescriptor(int8_t t) { - int8_t ret = 0; + int ret = 0; PUSBListNode* node = rootNode; for (u8 i=0; i<modules_count && ret == 0; i++) { ret = node->cb->getDescriptor(t); |