diff options
| author | Yunhao Tian <[email protected]> | 2021-12-06 19:56:27 +0800 |
|---|---|---|
| committer | Yunhao Tian <[email protected]> | 2021-12-06 19:56:27 +0800 |
| commit | 96979a2c4a43902a3051c678858e788e7ffc8c60 (patch) | |
| tree | 2fe602e0dfd7612b1e18baa70fac8d3567cfa452 /src | |
| parent | 1ffc366aa9bb9c2dda8210956c2ac9a6fbafc88b (diff) | |
Fix handling of RXRDY bit
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/sunxi/dcd_sunxi_musb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/sunxi/dcd_sunxi_musb.c b/src/portable/sunxi/dcd_sunxi_musb.c index e164f2c19..be1847b21 100644 --- a/src/portable/sunxi/dcd_sunxi_musb.c +++ b/src/portable/sunxi/dcd_sunxi_musb.c @@ -598,12 +598,12 @@ static bool handle_xfer_out(uint_fast8_t ep_addr) pipe->buf = buf + len; } pipe->remaining = rem - len; - __USBC_Dev_Rx_ReadDataComplete(); } if ((len < mps) || (rem == len)) { pipe->buf = NULL; return NULL != buf; } + __USBC_Dev_Rx_ReadDataComplete(); return false; } |
