We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64a7472 commit 2255cdcCopy full SHA for 2255cdc
components/usb/enum.c
@@ -198,8 +198,8 @@ static uint8_t get_next_free_dev_addr(void)
198
if (usbh_devs_open(new_dev_addr, &dev_hdl) == ESP_ERR_NOT_FOUND) {
199
break;
200
}
201
- // We have a device with the same address on a bus, close device and request new addr
202
- usbh_dev_close(dev_hdl);
+ // We have a device with the same address on a bus, close device and request new addr, there should be no error with closing
+ ESP_ERROR_CHECK(usbh_dev_close(dev_hdl));
203
new_dev_addr = get_next_dev_addr();
204
205
// Sanity check
0 commit comments