change USB descriptor to misc, for windows to recognize

This commit is contained in:
King Kévin 2024-04-17 06:21:49 +02:00
parent ae16710fc0
commit 880916166b
1 changed files with 4 additions and 4 deletions

View File

@ -39,9 +39,9 @@ tusb_desc_device_t const desc_device =
.bLength = sizeof(tusb_desc_device_t),
.bDescriptorType = TUSB_DESC_DEVICE,
.bcdUSB = USB_BCD,
.bDeviceClass = TUSB_CLASS_HID,
.bDeviceSubClass = HID_SUBCLASS_NONE,
.bDeviceProtocol = HID_ITF_PROTOCOL_KEYBOARD,
.bDeviceClass = TUSB_CLASS_MISC, // misc. because HID + CDC
.bDeviceSubClass = MISC_SUBCLASS_COMMON,
.bDeviceProtocol = MISC_PROTOCOL_IAD,
.bMaxPacketSize0 = CFG_TUD_ENDPOINT0_SIZE,
.idVendor = USB_VID,
@ -188,7 +188,7 @@ char const *string_desc_arr[] =
{
(const char[]) { 0x09, 0x04 }, // 0: is supported language is English (0x0409)
"CuVoodoo", // 1: Manufacturer
"passkey v2", // 2: Product
"passkey", // 2: Product
NULL, // 3: Serials will use unique ID if possible
};