From 0b3244c5ec3ac0f55550193b3144f5beb31891b2 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 1 Oct 2015 12:39:57 +0200 Subject: [HID] removed unused modules_count field --- libraries/HID/HID.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libraries/HID/HID.cpp') diff --git a/libraries/HID/HID.cpp b/libraries/HID/HID.cpp index a109574..3a439f0 100644 --- a/libraries/HID/HID.cpp +++ b/libraries/HID/HID.cpp @@ -56,7 +56,7 @@ int HID_::getDescriptor(int8_t type) void HID_::AppendDescriptor(HIDDescriptorListNode *node) { - if (modules_count == 0) { + if (!rootNode) { rootNode = node; } else { HIDDescriptorListNode *current = rootNode; @@ -65,7 +65,6 @@ void HID_::AppendDescriptor(HIDDescriptorListNode *node) } current->next = node; } - modules_count++; sizeof_hidReportDescriptor += (uint16_t)node->length; } @@ -116,7 +115,7 @@ bool HID_::setup(USBSetup& setup, uint8_t interfaceNum) HID_::HID_(void) : PUSBListNode(1, 1, epType), rootNode(NULL), sizeof_hidReportDescriptor(0), - modules_count(0), protocol(1), idle(1) + protocol(1), idle(1) { epType[0] = EP_TYPE_INTERRUPT_IN; PluggableUSB.plug(this); -- cgit v1.2.3-18-g5258