Skip to content

Commit

Permalink
Merge pull request #2892 from roma-jam/fix/usbd_control_debug_buffer_…
Browse files Browse the repository at this point in the history
…name

refactor(usbd_control): Updated the buffer name for deeper debug
  • Loading branch information
hathach authored Nov 29, 2024
2 parents 6b36df3 + ecc65a8 commit 444277f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device/usbd_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 444277f

Please sign in to comment.