mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
dcd_nuc121: allow user ZLP transfers to get a callback
This commit is contained in:
parent
f4371e79b1
commit
5c5f876461
@ -399,7 +399,7 @@ void USBD_IRQHandler(void)
|
||||
if ( (0 == xfer->remaining_bytes) || (available_bytes < xfer->max_packet_size) )
|
||||
dcd_event_xfer_complete(0, ep_addr, available_bytes, XFER_RESULT_SUCCESS, true);
|
||||
}
|
||||
else if (xfer->remaining_bytes)
|
||||
else
|
||||
{
|
||||
/* update the bookkeeping to reflect the data that has now been sent to the PC */
|
||||
xfer->remaining_bytes -= available_bytes;
|
||||
|
Loading…
x
Reference in New Issue
Block a user