Kaynağa Gözat

fix device descriptor to use IAD

issue #45
Dmitry 7 yıl önce
ebeveyn
işleme
26bad84152
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      demo/cdc_loop.c

+ 3 - 3
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,