summaryrefslogtreecommitdiff
path: root/examples/device
diff options
context:
space:
mode:
authorkkitayam <[email protected]>2024-03-25 23:24:24 +0900
committerkkitayam <[email protected]>2024-03-25 23:24:24 +0900
commit6a14dd190fa21d0632c956040fc0b2c0f41c676f (patch)
treefb7dc8007e33a694866917f837216a131a6e308b /examples/device
parent8f04d96c07aff30cecb608fa61d54a6e6f5b99ef (diff)
Fix compile errors when High Speed
Diffstat (limited to 'examples/device')
-rw-r--r--examples/device/video_capture_2ch/src/usb_descriptors.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/device/video_capture_2ch/src/usb_descriptors.c b/examples/device/video_capture_2ch/src/usb_descriptors.c
index 0c1066416..e5798f7f2 100644
--- a/examples/device/video_capture_2ch/src/usb_descriptors.c
+++ b/examples/device/video_capture_2ch/src/usb_descriptors.c
@@ -558,7 +558,8 @@ static uint8_t * get_hs_configuration_desc(void) {
desc_hs_configuration = desc_fs_configuration;
// change endpoint bulk size to 512 if bulk streaming
if (CFG_TUD_VIDEO_STREAMING_BULK) {
- desc_hs_configuration.video_streaming.ep.wMaxPacketSize = 512;
+ desc_hs_configuration.uvc[0].video_streaming.ep.wMaxPacketSize = 512;
+ desc_hs_configuration.uvc[1].video_streaming.ep.wMaxPacketSize = 512;
}
}
init = true;