We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1360de commit c279a76Copy full SHA for c279a76
src/HID/HID.cpp
@@ -265,8 +265,7 @@ bool HID_::setup(USBSetup& setup)
265
return false;
266
}
267
268
-HID_::HID_(void) : PluggableUSBModule(2, 1, epType),
269
- protocol(HID_REPORT_PROTOCOL)
+HID_::HID_(void) : PluggableUSBModule(2, 1, epType)
270
{
271
epType[0] = EP_TYPE_INTERRUPT_IN;
272
epType[1] = EP_TYPE_INTERRUPT_OUT;
src/HID/HID.h
@@ -144,7 +144,7 @@ class HID_ : public PluggableUSBModule
144
HIDSubDescriptor* rootNode = nullptr;
145
uint16_t descriptorSize = 1;
146
147
- uint8_t protocol;
+ uint8_t protocol = HID_REPORT_PROTOCOL;
148
uint8_t idle = 1;
149
150
// Buffer pointer to hold the feature data
0 commit comments