Fix compile errors when High Speed

This commit is contained in:
kkitayam 2024-03-25 23:24:24 +09:00
parent 8f04d96c07
commit 6a14dd190f
1 changed files with 2 additions and 1 deletions

View File

@ -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;