diff options
| author | Ha Thach <[email protected]> | 2021-08-25 12:39:51 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-25 12:39:51 +0700 |
| commit | 155c186b17e4e56d2b6339f8087d077afbea6818 (patch) | |
| tree | a0802244abf1361eab31a61d2475b28e7a432a34 /src/class | |
| parent | 9c3fdb8135f33dd3a1c8dfddaf8300e7416bd7af (diff) | |
| parent | 3debeb637acb49222f36fa08f904adc4f5d9e1b7 (diff) | |
Merge pull request #1047 from hathach/host-hid-controller
Add host hid controller example
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/hid/hid_host.c | 2 |
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 { |
