diff options
| author | hathach <[email protected]> | 2021-05-18 13:08:30 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-05-18 13:08:30 +0700 |
| commit | 40cd3a7e203a3428643e5a91044d21152cddccbe (patch) | |
| tree | 62bcfe8647091b464ef9fff65f39c3d43a4899b4 /examples/host/cdc_msc_hid | |
| parent | ffdcf9a0d00ad8eba544c4404e27275685ef9cab (diff) | |
| parent | 4f84185b43f60a4ae0a579975646434358fee533 (diff) | |
Merge branch 'master' into host-hid
Diffstat (limited to 'examples/host/cdc_msc_hid')
| -rw-r--r-- | examples/host/cdc_msc_hid/src/hid_app.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/host/cdc_msc_hid/src/hid_app.c b/examples/host/cdc_msc_hid/src/hid_app.c index 4f8556274..de92ab841 100644 --- a/examples/host/cdc_msc_hid/src/hid_app.c +++ b/examples/host/cdc_msc_hid/src/hid_app.c @@ -75,6 +75,8 @@ void tuh_hid_unmounted_cb(uint8_t dev_addr, uint8_t instance) void tuh_hid_get_report_cb(uint8_t dev_addr, uint8_t instance, uint8_t const* report, uint16_t len) { + (void) dev_addr; + uint8_t const rpt_count = _report_count[instance]; tuh_hid_report_info_t* rpt_info; @@ -86,6 +88,7 @@ void tuh_hid_get_report_cb(uint8_t dev_addr, uint8_t instance, uint8_t const* re rpt_info = &_report_info[instance][idx]; report++; + len--; }else { rpt_info = &_report_info[instance][0]; |
