mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
7010349a9a
When a USB does not support a particular string dsecriptor (e.g., manufacturer, product, and serial number), the string descriptors corresponding index will be set to 0 in the device descriptor (e.g., iManufacturer, iProduct, iString). Previously, the Hub driver would always attempt to fetch the all three string descriptors, thus leading an error in CHECK_SHORT_SER_STR_DESC if the device did not support the descriptor. This commit fixes the Hub drvier by skipping the enumeration stages of a particular descriptor if its index is 0 (i.e., not supported by the device). |
||
---|---|---|
.. | ||
include | ||
private_include | ||
test_apps | ||
.build-test-rules.yml | ||
CMakeLists.txt | ||
hcd_dwc.c | ||
hub.c | ||
Kconfig | ||
maintainers.md | ||
usb_helpers.c | ||
usb_host.c | ||
usb_phy.c | ||
usb_private.c | ||
usbh.c |