diff options
author | Cristian Maglie <c.maglie@arduino.cc> | 2015-10-12 12:17:42 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@arduino.cc> | 2015-10-12 12:24:07 +0200 |
commit | f42b26c257859f1b76094972727c4ebc2b412a62 (patch) | |
tree | 41aabc829ca11634584ceeefd4cc02220e034a45 /libraries/HID/HID.cpp | |
parent | 2e755384f50eee83bcf0c850978b1387f185a2be (diff) |
[HID] renamed HIDDescriptorListNode to HIDSubDescriptor
Diffstat (limited to 'libraries/HID/HID.cpp')
-rw-r--r-- | libraries/HID/HID.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libraries/HID/HID.cpp b/libraries/HID/HID.cpp index 7b17a66..411529e 100644 --- a/libraries/HID/HID.cpp +++ b/libraries/HID/HID.cpp @@ -47,7 +47,7 @@ int HID_::getDescriptor(USBSetup& setup) if (setup.wIndex != pluggedInterface) { return 0; } int total = 0; - HIDDescriptorListNode* node; + HIDSubDescriptor* node; for (node = rootNode; node; node = node->next) { int res = USB_SendControl(TRANSFER_PGM, node->data, node->length); if (res == -1) @@ -57,12 +57,12 @@ int HID_::getDescriptor(USBSetup& setup) return total; } -void HID_::AppendDescriptor(HIDDescriptorListNode *node) +void HID_::AppendDescriptor(HIDSubDescriptor *node) { if (!rootNode) { rootNode = node; } else { - HIDDescriptorListNode *current = rootNode; + HIDSubDescriptor *current = rootNode; while (current->next) { current = current->next; } |