File tree 2 files changed +3
-6
lines changed 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -110,15 +110,11 @@ bool HID_::setup(USBSetup& setup, uint8_t i)
110
110
}
111
111
}
112
112
113
- // XXX: I've found no way to pass literal value directly in
114
- // the PUSBListNode constructor
115
- static uint8_t epTypeDef[] = { EP_TYPE_INTERRUPT_IN };
116
-
117
- HID_::HID_ (void ) : PUSBListNode(1 , 1 , epTypeDef),
113
+ HID_::HID_ (void ) : PUSBListNode(1 , 1 , epType),
118
114
rootNode(NULL ), sizeof_hidReportDescriptor(0 ),
119
115
modules_count(0 ), protocol(1 ), idle(1 )
120
116
{
121
- // XXX: Shall this be done in PUSBListNode(...) constructor?
117
+ epType[ 0 ] = EP_TYPE_INTERRUPT_IN;
122
118
PluggableUSB.plug (this );
123
119
}
124
120
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ class HID_ : public PUSBListNode
88
88
89
89
private:
90
90
HIDDescriptor hidInterface;
91
+ uint8_t epType[1 ];
91
92
92
93
HIDDescriptorListNode* rootNode;
93
94
uint16_t sizeof_hidReportDescriptor;
You can’t perform that action at this time.
0 commit comments