diff options
| author | Peter Lawrence <[email protected]> | 2020-01-15 10:23:23 -0600 |
|---|---|---|
| committer | Peter Lawrence <[email protected]> | 2020-01-15 10:23:23 -0600 |
| commit | 7f2db321bf8e1f97d4759cf2efef0f684a461916 (patch) | |
| tree | c47858ca2120d434c132a362e49057b241e3d7dc /src/portable | |
| parent | f2a5335417004cdc9398e3beac1f4861a5e29e0a (diff) | |
nuc121: better fix for handling large OUT transfers
Diffstat (limited to 'src/portable')
| -rw-r--r-- | src/portable/nuvoton/nuc121/dcd_nuc121.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/nuvoton/nuc121/dcd_nuc121.c b/src/portable/nuvoton/nuc121/dcd_nuc121.c index 892a20aa4..237a5fd9a 100644 --- a/src/portable/nuvoton/nuc121/dcd_nuc121.c +++ b/src/portable/nuvoton/nuc121/dcd_nuc121.c @@ -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;
}
|
