summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNathan Conrad <[email protected]>2020-04-15 16:01:32 -0400
committerNathan Conrad <[email protected]>2020-04-15 16:07:01 -0400
commitbe9326dc331bccf61188ee621eae060322f097a9 (patch)
tree6d8092abef21c6b50fa86227836d2959ae6b8050 /examples
parenteb2aaa5de835b2be4e0e070e0813d0c211d2aed1 (diff)
Set Net example to use IAD device class
Diffstat (limited to 'examples')
-rw-r--r--examples/device/net_lwip_webserver/src/usb_descriptors.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/device/net_lwip_webserver/src/usb_descriptors.c b/examples/device/net_lwip_webserver/src/usb_descriptors.c
index 3e61112e2..2d2bcf8bc 100644
--- a/examples/device/net_lwip_webserver/src/usb_descriptors.c
+++ b/examples/device/net_lwip_webserver/src/usb_descriptors.c
@@ -56,9 +56,11 @@ tusb_desc_device_t const desc_device =
.bDescriptorType = TUSB_DESC_DEVICE,
.bcdUSB = 0x0200,
- .bDeviceClass = TUSB_CLASS_UNSPECIFIED,
- .bDeviceSubClass = 0,
- .bDeviceProtocol = 0,
+ // Use Interface Association Descriptor (IAD) device class
+ .bDeviceClass = TUSB_CLASS_MISC,
+ .bDeviceSubClass = MISC_SUBCLASS_COMMON,
+ .bDeviceProtocol = MISC_PROTOCOL_IAD,
+
.bMaxPacketSize0 = CFG_TUD_ENDPOINT0_SIZE,
.idVendor = 0xCafe,