diff options
| author | Ha Thach <[email protected]> | 2024-04-04 18:34:26 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-04 18:34:26 +0700 |
| commit | 5738757e2ca73ab003df5bfbf5ec7b60850ef88b (patch) | |
| tree | 05076c85e6bea1076641f8478eb29a996d56ce17 /src | |
| parent | 177b388be0f430ef09ad2caf61cd70acd574c0d5 (diff) | |
| parent | 802ad885ab041ecf855c1c08d97dfc45359fd1b0 (diff) | |
Merge pull request #2421 from antoniovazquezblanco/debug
Log outbound xfer bytes while in debug
Diffstat (limited to 'src')
| -rw-r--r-- | src/device/usbd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index 96d0b698b..8f98862c6 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -1181,6 +1181,11 @@ bool usbd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t* buffer, uint16_t t // TU_VERIFY(tud_ready()); TU_LOG_USBD(" Queue EP %02X with %u bytes ...\r\n", ep_addr, total_bytes); +#if CFG_TUD_LOG_LEVEL >= 3 + if(dir == TUSB_DIR_IN) { + TU_LOG_MEM(CFG_TUD_LOG_LEVEL, buffer, total_bytes, 2); + } +#endif // Attempt to transfer on a busy endpoint, sound like an race condition ! TU_ASSERT(_usbd_dev.ep_status[epnum][dir].busy == 0); |
