summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-08-24 19:10:23 +0700
committerhathach <[email protected]>2021-08-24 19:10:23 +0700
commit3c0c051df182cb7261e0f5eb6c52e84f860d0ae1 (patch)
tree46849b4a8829b1b005044b0c0c42a106e56a25ff /src/class
parent88bb8fac3d555e390f59770200c73a13eb61504b (diff)
add tuh_vid_pid_get()
complete Sony PS4 dualshock controller example
Diffstat (limited to 'src/class')
-rw-r--r--src/class/hid/hid_host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/hid/hid_host.c b/src/class/hid/hid_host.c
index 3a832a247..8c66477b3 100644
--- a/src/class/hid/hid_host.c
+++ b/src/class/hid/hid_host.c
@@ -228,7 +228,7 @@ bool hidh_xfer_cb(uint8_t dev_addr, uint8_t ep_addr, xfer_result_t result, uint3
if ( dir == TUSB_DIR_IN )
{
TU_LOG2(" Get Report callback (%u, %u)\r\n", dev_addr, instance);
- TU_LOG1_MEM(hid_itf->epin_buf, 8, 2);
+ TU_LOG3_MEM(hid_itf->epin_buf, xferred_bytes, 2);
tuh_hid_report_received_cb(dev_addr, instance, hid_itf->epin_buf, xferred_bytes);
}else
{