From cbf19a1303d8b171693882b30d64fd80de235b8d Mon Sep 17 00:00:00 2001 From: sekigon-gonnoc <43873124+sekigon-gonnoc@users.noreply.github.com> Date: Sun, 3 Apr 2022 16:32:16 +0900 Subject: [PATCH] Fix usb descriptor --- tmk_core/protocol/pico/usb_descriptors.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tmk_core/protocol/pico/usb_descriptors.c b/tmk_core/protocol/pico/usb_descriptors.c index 38827cde64..c32cb6c63d 100644 --- a/tmk_core/protocol/pico/usb_descriptors.c +++ b/tmk_core/protocol/pico/usb_descriptors.c @@ -47,14 +47,14 @@ tusb_desc_device_t const desc_device = { .bLength = sizeof(tusb_desc_device_t), .bDescriptorType = TUSB_DESC_DEVICE, - .bcdUSB = 0x0110, + .bcdUSB = 0x0200, // Use Interface Association Descriptor (IAD) for CDC // As required by USB Specs IAD's subclass must be common class (2) and // protocol must be IAD (1) - .bDeviceClass = 0, - .bDeviceSubClass = 0, - .bDeviceProtocol = 0, + .bDeviceClass = TUSB_CLASS_MISC, + .bDeviceSubClass = MISC_SUBCLASS_COMMON, + .bDeviceProtocol = MISC_PROTOCOL_IAD, .bMaxPacketSize0 = CFG_TUD_ENDPOINT0_SIZE,