diff options
| author | Peter Lawrence <[email protected]> | 2020-01-04 13:36:26 -0600 |
|---|---|---|
| committer | Peter Lawrence <[email protected]> | 2020-01-04 13:36:26 -0600 |
| commit | 5c5f876461e81ff7c2937978e4e6855e0208ebfb (patch) | |
| tree | b62c8a17ee99f74a52e06c3ba296416b4c5eb9d8 | |
| parent | f4371e79b10f85b0f8f6112c8e81b92072bacea0 (diff) | |
dcd_nuc121: allow user ZLP transfers to get a callback
| -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 57db5231d..afe2cf001 100644 --- a/src/portable/nuvoton/nuc121/dcd_nuc121.c +++ b/src/portable/nuvoton/nuc121/dcd_nuc121.c @@ -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;
|
