summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-04-04 17:15:38 +0700
committerGitHub <[email protected]>2024-04-04 17:15:38 +0700
commit802ad885ab041ecf855c1c08d97dfc45359fd1b0 (patch)
treecfe9a8373e4c07d595ade031dd446a59d7ac1dad
parent0531027b57e9401d49afa13e70f5a6a9763a3b85 (diff)
minor update
-rw-r--r--src/device/usbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 28eb9aa6e..72fde1b97 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -1233,7 +1233,7 @@ bool usbd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t
TU_LOG_USBD(" Queue EP %02X with %u bytes ...\r\n", ep_addr, total_bytes);
#if CFG_TUD_LOG_LEVEL >= 3
- if(tu_edpt_dir(ep_addr) == TUSB_DIR_IN) {
+ if(dir == TUSB_DIR_IN) {
TU_LOG_MEM(CFG_TUD_LOG_LEVEL, buffer, total_bytes, 2);
}
#endif