mirror of
https://github.com/esphome/esphome.git
synced 2025-09-26 15:12:21 +01:00
Merge branch 'usb_host_blocking_fix' of https://github.com/esphome/esphome into usb_host_blocking_fix
This commit is contained in:
@@ -444,7 +444,6 @@ void USBClient::transfer_in(uint8_t ep_address, const transfer_cb_t &callback, u
|
|||||||
trq->transfer->callback = transfer_callback;
|
trq->transfer->callback = transfer_callback;
|
||||||
trq->transfer->bEndpointAddress = ep_address | USB_DIR_IN;
|
trq->transfer->bEndpointAddress = ep_address | USB_DIR_IN;
|
||||||
trq->transfer->num_bytes = length;
|
trq->transfer->num_bytes = length;
|
||||||
|
|
||||||
auto err = usb_host_transfer_submit(trq->transfer);
|
auto err = usb_host_transfer_submit(trq->transfer);
|
||||||
if (err != ESP_OK) {
|
if (err != ESP_OK) {
|
||||||
ESP_LOGE(TAG, "Failed to submit transfer, address=%x, length=%d, err=%x", ep_address, length, err);
|
ESP_LOGE(TAG, "Failed to submit transfer, address=%x, length=%d, err=%x", ep_address, length, err);
|
||||||
|
Reference in New Issue
Block a user