Skip to content

Commit ecc65a8

Browse files
committed
refactor(usbd_control): Updated the buffer name for deeper debug
1 parent 6b36df3 commit ecc65a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/device/usbd_control.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ bool usbd_control_xfer_cb(uint8_t rhport, uint8_t ep_addr, xfer_result_t result,
174174
if (_ctrl_xfer.request.bmRequestType_bit.direction == TUSB_DIR_OUT) {
175175
TU_VERIFY(_ctrl_xfer.buffer);
176176
memcpy(_ctrl_xfer.buffer, _ctrl_epbuf.buf, xferred_bytes);
177-
TU_LOG_MEM(CFG_TUD_LOG_LEVEL, _usbd_ctrl_buf, xferred_bytes, 2);
177+
TU_LOG_MEM(CFG_TUD_LOG_LEVEL, _ctrl_xfer.buffer, xferred_bytes, 2);
178178
}
179179

180180
_ctrl_xfer.total_xferred += (uint16_t) xferred_bytes;

0 commit comments

Comments
 (0)