File tree 2 files changed +2
-4
lines changed 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ int HID_::getDescriptor(int8_t type)
56
56
57
57
void HID_::AppendDescriptor (HIDDescriptorListNode *node)
58
58
{
59
- if (modules_count == 0 ) {
59
+ if (!rootNode ) {
60
60
rootNode = node;
61
61
} else {
62
62
HIDDescriptorListNode *current = rootNode;
@@ -65,7 +65,6 @@ void HID_::AppendDescriptor(HIDDescriptorListNode *node)
65
65
}
66
66
current->next = node;
67
67
}
68
- modules_count++;
69
68
sizeof_hidReportDescriptor += (uint16_t )node->length ;
70
69
}
71
70
@@ -116,7 +115,7 @@ bool HID_::setup(USBSetup& setup, uint8_t interfaceNum)
116
115
117
116
HID_::HID_ (void ) : PUSBListNode(1 , 1 , epType),
118
117
rootNode(NULL ), sizeof_hidReportDescriptor(0 ),
119
- modules_count( 0 ), protocol(1 ), idle(1 )
118
+ protocol(1 ), idle(1 )
120
119
{
121
120
epType[0 ] = EP_TYPE_INTERRUPT_IN;
122
121
PluggableUSB.plug (this );
Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ class HID_ : public PUSBListNode
92
92
93
93
HIDDescriptorListNode* rootNode;
94
94
uint16_t sizeof_hidReportDescriptor;
95
- uint8_t modules_count;
96
95
97
96
uint8_t protocol;
98
97
uint8_t idle;
You can’t perform that action at this time.
0 commit comments