kopia lustrzana https://github.com/espressif/esp-idf
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 | ||
Kconfig | ||
hcd_dwc.c | ||
hub.c | ||
maintainers.md | ||
usb_helpers.c | ||
usb_host.c | ||
usb_phy.c | ||
usb_private.c | ||
usbh.c |