summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-11-29 11:22:29 +0700
committerGitHub <[email protected]>2024-11-29 11:22:29 +0700
commit444277f4a2d841df0112eb9a24c0bdf1aef6b55b (patch)
tree2f5441b67ba3c5524ef0fa48be9089a6313b244c /src
parent6b36df3e396c2eaec5d741ca00b1cdf3d19baffb (diff)
parentecc65a86c871972766f460e8f2ce0f436ae2391b (diff)
Merge pull request #2892 from roma-jam/fix/usbd_control_debug_buffer_name
refactor(usbd_control): Updated the buffer name for deeper debug
Diffstat (limited to 'src')
-rw-r--r--src/device/usbd_control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/usbd_control.c b/src/device/usbd_control.c
index 80a2a2cc1..d964a75d0 100644
--- a/src/device/usbd_control.c
+++ b/src/device/usbd_control.c
@@ -174,7 +174,7 @@ bool usbd_control_xfer_cb(uint8_t rhport, uint8_t ep_addr, xfer_result_t result,
if (_ctrl_xfer.request.bmRequestType_bit.direction == TUSB_DIR_OUT) {
TU_VERIFY(_ctrl_xfer.buffer);
memcpy(_ctrl_xfer.buffer, _ctrl_epbuf.buf, xferred_bytes);
- TU_LOG_MEM(CFG_TUD_LOG_LEVEL, _usbd_ctrl_buf, xferred_bytes, 2);
+ TU_LOG_MEM(CFG_TUD_LOG_LEVEL, _ctrl_xfer.buffer, xferred_bytes, 2);
}
_ctrl_xfer.total_xferred += (uint16_t) xferred_bytes;