refactor(usb_host): Removed error in enum when stalled, added hcd_dwc no more free channels

This commit is contained in:
Roman Leonov
2024-10-25 16:10:32 +08:00
parent 63f9104669
commit b15e83f6e0
2 changed files with 15 additions and 7 deletions

View File

@@ -1824,6 +1824,8 @@ esp_err_t hcd_pipe_alloc(hcd_port_handle_t port_hdl, const hcd_pipe_config_t *pi
bool chan_allocated = usb_dwc_hal_chan_alloc(port->hal, pipe->chan_obj, (void *) pipe);
if (!chan_allocated) {
HCD_EXIT_CRITICAL();
// The only reason why alloc channel could return false is no more free channels
ESP_LOGE(HCD_DWC_TAG, "No more HCD channels available");
ret = ESP_ERR_NOT_SUPPORTED;
goto err;
}