mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
refactor(usb_host): Removed error in enum when stalled, added hcd_dwc no more free channels
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user