diff options
| author | hathach <[email protected]> | 2021-06-17 01:55:35 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-06-17 01:55:35 +0700 |
| commit | 832d22d7addf9b1e4b88556c544f60bd9fa32dd6 (patch) | |
| tree | 44fb76004a6b1557d17651ec87f49fcf03af726a /src/device | |
| parent | 5c567129ea34ea78833cee2bf38e4e09cbdee389 (diff) | |
force single buffered for device mode, out endpoint
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/usbd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index 2935defd0..587d487dc 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -1254,14 +1254,13 @@ bool usbd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t if ( dcd_edpt_xfer(rhport, ep_addr, buffer, total_bytes) ) { - TU_LOG2("OK\r\n"); return true; }else { // DCD error, mark endpoint as ready to allow next transfer _usbd_dev.ep_status[epnum][dir].busy = false; _usbd_dev.ep_status[epnum][dir].claimed = 0; - TU_LOG2("failed\r\n"); + TU_LOG2("FAILED\r\n"); TU_BREAKPOINT(); return false; } |
