aboutsummaryrefslogtreecommitdiff
path: root/libraries/HID
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/HID')
-rw-r--r--libraries/HID/HID.cpp2
-rw-r--r--libraries/HID/HID.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/libraries/HID/HID.cpp b/libraries/HID/HID.cpp
index 574af6b..b7aab6c 100644
--- a/libraries/HID/HID.cpp
+++ b/libraries/HID/HID.cpp
@@ -26,7 +26,7 @@ HID_ HID;
int HID_::getInterface(uint8_t* interfaceNum)
{
*interfaceNum += 1; // uses 1
- hidInterface = {
+ HIDDescriptor hidInterface = {
D_INTERFACE(interface(), 1, 3, 0, 0),
D_HIDREPORT(descriptorSize),
D_ENDPOINT(USB_ENDPOINT_IN(endpoint()), USB_ENDPOINT_TYPE_INTERRUPT, USB_EP_SIZE, 0x01)
diff --git a/libraries/HID/HID.h b/libraries/HID/HID.h
index d31d9c5..2cd0f4a 100644
--- a/libraries/HID/HID.h
+++ b/libraries/HID/HID.h
@@ -84,7 +84,6 @@ protected:
bool setup(USBSetup& setup, uint8_t interfaceNum);
private:
- HIDDescriptor hidInterface;
uint8_t epType[1];
HIDDescriptorListNode* rootNode;