diff options
author | Dmitry <dmitrystu@gmail.com> | 2019-08-02 01:43:11 +0300 |
---|---|---|
committer | Dmitry <dmitrystu@gmail.com> | 2019-08-02 01:43:11 +0300 |
commit | 26bad84152062c590bd7a694cada47a72e07d34e (patch) | |
tree | 97e220e0b49c3dee3ea70560158b4af051e5e2ab | |
parent | 69e1046809c6a070169016021d277c85e5c84d58 (diff) |
fix device descriptor to use IAD
issue #45
-rw-r--r-- | demo/cdc_loop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demo/cdc_loop.c b/demo/cdc_loop.c index f4e56f7..28f415e 100644 --- a/demo/cdc_loop.c +++ b/demo/cdc_loop.c @@ -98,9 +98,9 @@ static const struct usb_device_descriptor device_desc = { .bLength = sizeof(struct usb_device_descriptor), .bDescriptorType = USB_DTYPE_DEVICE, .bcdUSB = VERSION_BCD(2,0,0), - .bDeviceClass = USB_CLASS_PER_INTERFACE, - .bDeviceSubClass = USB_SUBCLASS_NONE, - .bDeviceProtocol = USB_PROTO_NONE, + .bDeviceClass = USB_CLASS_IAD, + .bDeviceSubClass = USB_SUBCLASS_IAD, + .bDeviceProtocol = USB_PROTO_IAD, .bMaxPacketSize0 = CDC_EP0_SIZE, .idVendor = 0x0483, .idProduct = 0x5740, |