Skip to content

Commit 6de6a0a

Browse files
authored
Update USBCore.cpp
1 parent 9a1c20c commit 6de6a0a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cores/arduino/USBCore.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,12 @@ bool SendDescriptor(USBSetup& setup)
466466
}
467467
#endif
468468

469+
if (t == 0x21) {
470+
InitControl(setup.wLength);
471+
USB_SendControl(TRANSFER_PGM, hidClassDescriptor, hidClassDescriptorSize, setup.wLength));
472+
return true;
473+
}
474+
469475
if (t == 0x22) { // HID Report descriptor request
470476
return USB_SendControl(TRANSFER_PGM, hidDescriptor, hidDescriptorSize) > 0;
471477
}

0 commit comments

Comments
 (0)