mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
change(usb/host): Remove data buffer headers from URBs
This commit removes the ability to reserve a header in the data buffer of an allocated URB. The header was required for a now defunct implementation of a synchronous USB Host library API. Thus, headers are no longer required in URB data buffers.
This commit is contained in:
@@ -1245,7 +1245,7 @@ exit:
|
||||
|
||||
esp_err_t usb_host_transfer_alloc(size_t data_buffer_size, int num_isoc_packets, usb_transfer_t **transfer)
|
||||
{
|
||||
urb_t *urb = urb_alloc(data_buffer_size, 0, num_isoc_packets);
|
||||
urb_t *urb = urb_alloc(data_buffer_size, num_isoc_packets);
|
||||
if (urb == NULL) {
|
||||
return ESP_ERR_NO_MEM;
|
||||
}
|
||||
|
Reference in New Issue
Block a user