diff --git a/tinyusb/device/usbd.c b/tinyusb/device/usbd.c index 851803901..58b79f7a5 100644 --- a/tinyusb/device/usbd.c +++ b/tinyusb/device/usbd.c @@ -93,6 +93,24 @@ void std_get_descriptor(uint8_t coreid) break; case TUSB_DESC_TYPE_CONFIGURATION: + { + uint16_t const requested_length = min16_of(usbd_devices[coreid].setup_packet.wLength, sizeof(app_tusb_desc_configuration)-1); + for(uint16_t i=0; i