diff options
| author | Ha Thach <[email protected]> | 2023-02-06 09:08:46 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-06 09:08:46 +0700 |
| commit | 792b552c5cbcbe848489e60567779d8b1d4a8b9b (patch) | |
| tree | 391e540a246f959a79e0faac68f62b2142c68437 /examples | |
| parent | 4c03a9f85573c58d4c1415ab203278451ad568e8 (diff) | |
| parent | 3422e0568431079715acabc63f1899578ef6240d (diff) | |
Merge pull request #1884 from hathach/reapply-uint16-len-tud_hid_report_complete_cb
change length in tud_hid_report_complete_cb() from uint8 to uint16
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/hid_boot_interface/src/main.c | 2 | ||||
| -rw-r--r-- | examples/device/hid_composite/src/main.c | 2 | ||||
| -rw-r--r-- | examples/device/hid_composite_freertos/src/main.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/device/hid_boot_interface/src/main.c b/examples/device/hid_boot_interface/src/main.c index ef072019c..b13428041 100644 --- a/examples/device/hid_boot_interface/src/main.c +++ b/examples/device/hid_boot_interface/src/main.c @@ -181,7 +181,7 @@ void tud_hid_set_protocol_cb(uint8_t instance, uint8_t protocol) // 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, /*uint16_t*/ uint8_t len) +void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint16_t len) { (void) instance; (void) report; diff --git a/examples/device/hid_composite/src/main.c b/examples/device/hid_composite/src/main.c index f7d76cfc7..05315f266 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, /*uint16_t*/ uint8_t len) +void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint16_t len) { (void) instance; (void) len; diff --git a/examples/device/hid_composite_freertos/src/main.c b/examples/device/hid_composite_freertos/src/main.c index fb0d69258..7c9619c4b 100644 --- a/examples/device/hid_composite_freertos/src/main.c +++ b/examples/device/hid_composite_freertos/src/main.c @@ -302,7 +302,7 @@ void hid_task(void* param) // 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, /*uint16_t*/ uint8_t len) +void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint16_t len) { (void) instance; (void) len; |
