Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b495d6f

Browse filesBrowse files
committed
temporarily revert len back to uint8_t in tud_hid_report_complete_cb() for up coming release
1 parent 868f2bc commit b495d6f
Copy full SHA for b495d6f

File tree

Expand file treeCollapse file tree

5 files changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+5
-5
lines changed

‎examples/device/hid_boot_interface/src/main.c

Copy file name to clipboardExpand all lines: examples/device/hid_boot_interface/src/main.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ void tud_hid_set_protocol_cb(uint8_t instance, uint8_t protocol)
181181
// Invoked when sent REPORT successfully to host
182182
// Application can use this to send the next report
183183
// Note: For composite reports, report[0] is report ID
184-
void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint16_t len)
184+
void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, /*uint16_t*/ uint8_t len)
185185
{
186186
(void) instance;
187187
(void) report;

‎examples/device/hid_composite/src/main.c

Copy file name to clipboardExpand all lines: examples/device/hid_composite/src/main.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ void hid_task(void)
225225
// Invoked when sent REPORT successfully to host
226226
// Application can use this to send the next report
227227
// Note: For composite reports, report[0] is report ID
228-
void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint16_t len)
228+
void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, /*uint16_t*/ uint8_t len)
229229
{
230230
(void) instance;
231231
(void) len;

‎examples/device/hid_composite_freertos/src/main.c

Copy file name to clipboardExpand all lines: examples/device/hid_composite_freertos/src/main.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ void hid_task(void* param)
294294
// Invoked when sent REPORT successfully to host
295295
// Application can use this to send the next report
296296
// Note: For composite reports, report[0] is report ID
297-
void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint16_t len)
297+
void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, /*uint16_t*/ uint8_t len)
298298
{
299299
(void) instance;
300300
(void) len;

‎src/class/hid/hid_device.c

Copy file name to clipboardExpand all lines: src/class/hid/hid_device.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ bool hidd_xfer_cb(uint8_t rhport, uint8_t ep_addr, xfer_result_t result, uint32_
403403
{
404404
if (tud_hid_report_complete_cb)
405405
{
406-
tud_hid_report_complete_cb(instance, p_hid->epin_buf, (uint16_t) xferred_bytes);
406+
tud_hid_report_complete_cb(instance, p_hid->epin_buf, (/*uint16_t*/ uint8_t) xferred_bytes);
407407
}
408408
}
409409
// Received report

‎src/class/hid/hid_device.h

Copy file name to clipboardExpand all lines: src/class/hid/hid_device.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ TU_ATTR_WEAK bool tud_hid_set_idle_cb(uint8_t instance, uint8_t idle_rate);
116116
// Invoked when sent REPORT successfully to host
117117
// Application can use this to send the next report
118118
// Note: For composite reports, report[0] is report ID
119-
TU_ATTR_WEAK void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint16_t len);
119+
TU_ATTR_WEAK void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, /*uint16_t*/ uint8_t len );
120120

121121

122122
//--------------------------------------------------------------------+

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.