Skip to content

Commit 76fe039

Browse files
dhalberthathach
authored andcommitted
src/class/hid/hid_host.c: fix logging calls for epbuf
1 parent e889c0b commit 76fe039

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/class/hid/hid_host.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ bool tuh_hid_send_report(uint8_t daddr, uint8_t idx, uint8_t report_id, const vo
410410
++len; // 1 more byte for report_id
411411
}
412412

413-
TU_LOG3_MEM(p_hid->epout_buf, len, 2);
413+
TU_LOG3_MEM(epbuf->epout, len, 2);
414414

415415
if (!usbh_edpt_xfer(daddr, p_hid->ep_out, epbuf->epout, len)) {
416416
usbh_edpt_release(daddr, p_hid->ep_out);
@@ -445,7 +445,7 @@ bool hidh_xfer_cb(uint8_t daddr, uint8_t ep_addr, xfer_result_t result, uint32_t
445445

446446
if (dir == TUSB_DIR_IN) {
447447
TU_LOG_DRV(" Get Report callback (%u, %u)\r\n", daddr, idx);
448-
TU_LOG3_MEM(p_hid->epin_buf, xferred_bytes, 2);
448+
TU_LOG3_MEM(epbuf->epin, xferred_bytes, 2);
449449
tuh_hid_report_received_cb(daddr, idx, epbuf->epin, (uint16_t) xferred_bytes);
450450
} else {
451451
if (tuh_hid_report_sent_cb) {

0 commit comments

Comments
 (0)