diff options
author | Cristian Maglie <c.maglie@arduino.cc> | 2015-09-28 12:06:35 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@arduino.cc> | 2015-09-28 12:06:35 +0200 |
commit | dfe6048175f6a0c89e27cfa7a625bcf11a81fb33 (patch) | |
tree | 132543322726e2ea61a8275549c27f70d83b6492 /libraries/HID/HID.cpp | |
parent | d508e4dc54e2928fc8a8a9260d317b8651dbde52 (diff) | |
parent | 5a5cf764db88d148f3778a45ec1f9bae1899b3c3 (diff) |
Merge branch 'pluggable_hid_impr' of https://github.com/cmaglie/Arduino
Diffstat (limited to 'libraries/HID/HID.cpp')
-rw-r--r-- | libraries/HID/HID.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/HID/HID.cpp b/libraries/HID/HID.cpp index c5954ed..8533f08 100644 --- a/libraries/HID/HID.cpp +++ b/libraries/HID/HID.cpp @@ -61,7 +61,7 @@ int HID_GetDescriptor(int8_t t) HIDDescriptorListNode* current = rootNode; int total = 0; while(current != NULL) { - total += USB_SendControl(TRANSFER_PGM,current->cb->descriptor,current->cb->length); + total += USB_SendControl(TRANSFER_PGM,current->data,current->length); current = current->next; } return total; @@ -82,7 +82,7 @@ void HID_::AppendDescriptor(HIDDescriptorListNode *node) current->next = node; } modules_count++; - sizeof_hidReportDescriptor += (uint16_t)node->cb->length; + sizeof_hidReportDescriptor += (uint16_t)node->length; } void HID_::SendReport(u8 id, const void* data, int len) |