You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cdc_acm_reset_transfer_endpoint(cdc_dev->dev_hdl, cdc_dev->data.out_xfer); // Resetting the endpoint will cause all in-progress transfers to complete
990
-
ESP_LOGW(TAG, "TX transfer timeout");
991
-
ret=ESP_ERR_TIMEOUT;
992
-
goto unblock;
1012
+
ESP_GOTO_ON_FALSE(cdc_dev->data.out_xfer->status==USB_TRANSFER_STATUS_COMPLETED, ESP_ERR_INVALID_RESPONSE, unblock, TAG, "Bulk OUT transfer error");
1013
+
ESP_GOTO_ON_FALSE(cdc_dev->data.out_xfer->actual_num_bytes==chunk_size, ESP_ERR_INVALID_RESPONSE, unblock, TAG, "Incorrect number of bytes transferred");
1014
+
1015
+
remaining-=chunk_size;
1016
+
data_ptr+=chunk_size;
993
1017
}
994
1018
995
-
ESP_GOTO_ON_FALSE(cdc_dev->data.out_xfer->status==USB_TRANSFER_STATUS_COMPLETED, ESP_ERR_INVALID_RESPONSE, unblock, TAG, "Bulk OUT transfer error");
996
-
ESP_GOTO_ON_FALSE(cdc_dev->data.out_xfer->actual_num_bytes==data_len, ESP_ERR_INVALID_RESPONSE, unblock, TAG, "Incorrect number of bytes transferred");
0 commit comments