mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/usb_host/interface_parsing' into 'master'
usb_host: Fix interface descriptor parsing See merge request espressif/esp-idf!22323
This commit is contained in:
commit
bc314e1f8b
@ -76,9 +76,6 @@ int usb_parse_interface_number_of_alternate(const usb_config_desc_t *config_desc
|
||||
const usb_intf_desc_t *usb_parse_interface_descriptor(const usb_config_desc_t *config_desc, uint8_t bInterfaceNumber, uint8_t bAlternateSetting, int *offset)
|
||||
{
|
||||
assert(config_desc != NULL);
|
||||
if (bInterfaceNumber >= config_desc->bNumInterfaces) {
|
||||
return NULL; //bInterfaceNumber is out of range
|
||||
}
|
||||
|
||||
//Walk to first interface descriptor of bInterfaceNumber
|
||||
int offset_temp = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user