diff options
| author | hathach <[email protected]> | 2022-06-27 12:22:36 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-06-27 12:22:36 +0700 |
| commit | 556b5d5044bd02e89d6b6c6f21e95d46f5fcdfc1 (patch) | |
| tree | b9235ea6447ddd65cc7718f76a34e8aa6dd6b2c6 /examples/device/hid_composite/src | |
| parent | 0b3503cb33e6a269e573a75b6ed67d69aee12dbb (diff) | |
change report len in hid API from uint8_t to uint16_t
since HS interrupt endpoint can be up to 1024, 8-bit is not enough.
affected APIs are:
- tud_hid_n_report() / tud_hid_report()
- tud_hid_report_complete_cb()
Diffstat (limited to 'examples/device/hid_composite/src')
| -rw-r--r-- | examples/device/hid_composite/src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/hid_composite/src/main.c b/examples/device/hid_composite/src/main.c index bc2347ab8..3c088b7c2 100644 --- a/examples/device/hid_composite/src/main.c +++ b/examples/device/hid_composite/src/main.c @@ -225,7 +225,7 @@ void hid_task(void) // Invoked when sent REPORT successfully to host // Application can use this to send the next report // Note: For composite reports, report[0] is report ID -void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint8_t len) +void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint16_t len) { (void) instance; (void) len; |
