mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
nuc121: better fix for handling large OUT transfers
This commit is contained in:
parent
f2a5335417
commit
7f2db321bf
@ -397,7 +397,7 @@ void USBD_IRQHandler(void)
|
||||
|
||||
/* when the transfer is finished, alert TinyUSB; otherwise, accept more data */
|
||||
if ( (0 == xfer->remaining_bytes) || (available_bytes < xfer->max_packet_size) )
|
||||
dcd_event_xfer_complete(0, ep_addr, available_bytes, XFER_RESULT_SUCCESS, true);
|
||||
dcd_event_xfer_complete(0, ep_addr, xfer->total_bytes, XFER_RESULT_SUCCESS, true);
|
||||
else if (xfer->remaining_bytes)
|
||||
ep->MXPLD = xfer->max_packet_size;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user