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 c24bb59 commit a420486Copy full SHA for a420486
src/Keyboard.cpp
@@ -62,11 +62,7 @@ static const uint8_t _hidReportDescriptor[] PROGMEM = {
62
63
Keyboard_::Keyboard_(void)
64
{
65
- static HID_Descriptor descriptor = {
66
- .length = sizeof(_hidReportDescriptor),
67
- .data = _hidReportDescriptor,
68
- };
69
- static HIDDescriptorListNode node(&descriptor);
+ static HIDDescriptorListNode node(_hidReportDescriptor, sizeof(_hidReportDescriptor));
70
HID.AppendDescriptor(&node);
71
}
72
0 commit comments