diff --git a/core/usbd_core.c b/core/usbd_core.c index dca22910d7fde44b981c81b9e220d7f4bdbcb918..602ea9d6796f22968e899e356d15de805227785c 100644 --- a/core/usbd_core.c +++ b/core/usbd_core.c @@ -311,7 +311,7 @@ static bool usbd_get_descriptor(uint16_t type_index, uint8_t **data, uint32_t *l *data = p; /* get length from structure */ - if (type == USB_DESCRIPTOR_TYPE_CONFIGURATION) { + if ((type == USB_DESCRIPTOR_TYPE_CONFIGURATION)||((type == USB_DESCRIPTOR_TYPE_OTHER_SPEED))){ /* configuration descriptor is an * exception, length is at offset * 2 and 3