diff options
| author | Ha Thach <[email protected]> | 2021-06-28 17:39:09 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-06-28 17:39:09 +0700 |
| commit | 6e939de9d673979721b83b0b3ab724ebd652770c (patch) | |
| tree | e086e54a0a71b3391ff44d198830c1e69d5bc762 /src/device | |
| parent | e3cca973ecf03741c0069b2164ebd08a4ccca98a (diff) | |
| parent | 832d22d7addf9b1e4b88556c544f60bd9fa32dd6 (diff) | |
Merge pull request #891 from hathach/host-rp2040-double-buffer
RP2040 double buffer
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; } |
