diff options
| author | kkitayam <[email protected]> | 2024-03-25 23:24:24 +0900 |
|---|---|---|
| committer | kkitayam <[email protected]> | 2024-03-25 23:24:24 +0900 |
| commit | 6a14dd190fa21d0632c956040fc0b2c0f41c676f (patch) | |
| tree | fb7dc8007e33a694866917f837216a131a6e308b | |
| parent | 8f04d96c07aff30cecb608fa61d54a6e6f5b99ef (diff) | |
Fix compile errors when High Speed
| -rw-r--r-- | examples/device/video_capture_2ch/src/usb_descriptors.c | 3 |
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; |
