mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-07 05:54:11 +08:00
src/class/hid/hid_host.c: fix logging calls for epbuf
This commit is contained in:
parent
e889c0b51e
commit
76fe0393ed
@ -410,7 +410,7 @@ bool tuh_hid_send_report(uint8_t daddr, uint8_t idx, uint8_t report_id, const vo
|
|||||||
++len; // 1 more byte for report_id
|
++len; // 1 more byte for report_id
|
||||||
}
|
}
|
||||||
|
|
||||||
TU_LOG3_MEM(p_hid->epout_buf, len, 2);
|
TU_LOG3_MEM(epbuf->epout, len, 2);
|
||||||
|
|
||||||
if (!usbh_edpt_xfer(daddr, p_hid->ep_out, epbuf->epout, len)) {
|
if (!usbh_edpt_xfer(daddr, p_hid->ep_out, epbuf->epout, len)) {
|
||||||
usbh_edpt_release(daddr, p_hid->ep_out);
|
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
|
|||||||
|
|
||||||
if (dir == TUSB_DIR_IN) {
|
if (dir == TUSB_DIR_IN) {
|
||||||
TU_LOG_DRV(" Get Report callback (%u, %u)\r\n", daddr, idx);
|
TU_LOG_DRV(" Get Report callback (%u, %u)\r\n", daddr, idx);
|
||||||
TU_LOG3_MEM(p_hid->epin_buf, xferred_bytes, 2);
|
TU_LOG3_MEM(epbuf->epin, xferred_bytes, 2);
|
||||||
tuh_hid_report_received_cb(daddr, idx, epbuf->epin, (uint16_t) xferred_bytes);
|
tuh_hid_report_received_cb(daddr, idx, epbuf->epin, (uint16_t) xferred_bytes);
|
||||||
} else {
|
} else {
|
||||||
if (tuh_hid_report_sent_cb) {
|
if (tuh_hid_report_sent_cb) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user