diff options
| author | Zixun LI <[email protected]> | 2025-11-21 22:46:55 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-11-21 22:46:55 +0100 |
| commit | 0f1b2498711b2a2608a42ac88e971c5b93832c86 (patch) | |
| tree | d7eefd3c8e6f4b1249f1e90f008823128c493e7f /examples/device/video_capture | |
| parent | c785469881199b92b5ee8739d56ffe5aebcb6804 (diff) | |
| parent | d76ddc695f9706a211f95ed7b3a17761bb2fd1fa (diff) | |
Merge pull request #3357 from thamul/master
Fix in multiple example codes, wrong descriptor device qualifier length.
Diffstat (limited to 'examples/device/video_capture')
| -rw-r--r-- | examples/device/video_capture/src/usb_descriptors.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/device/video_capture/src/usb_descriptors.c b/examples/device/video_capture/src/usb_descriptors.c index 114dd5722..b3382c82d 100644 --- a/examples/device/video_capture/src/usb_descriptors.c +++ b/examples/device/video_capture/src/usb_descriptors.c @@ -385,8 +385,8 @@ static uint8_t * get_hs_configuration_desc(void) { // device qualifier is mostly similar to device descriptor since we don't change configuration based on speed static tusb_desc_device_qualifier_t const desc_device_qualifier = { - .bLength = sizeof(tusb_desc_device_t), - .bDescriptorType = TUSB_DESC_DEVICE, + .bLength = sizeof(tusb_desc_device_qualifier_t), + .bDescriptorType = TUSB_DESC_DEVICE_QUALIFIER, .bcdUSB = USB_BCD, .bDeviceClass = TUSB_CLASS_MISC, |
