change length in tud_hid_report_complete_cb() from uint8 to uint16

This commit is contained in:
hathach
2023-02-04 11:43:23 +07:00
parent 4c03a9f855
commit 3422e05684
5 changed files with 5 additions and 5 deletions

View File

@@ -403,7 +403,7 @@ bool hidd_xfer_cb(uint8_t rhport, uint8_t ep_addr, xfer_result_t result, uint32_
{
if (tud_hid_report_complete_cb)
{
tud_hid_report_complete_cb(instance, p_hid->epin_buf, (/*uint16_t*/ uint8_t) xferred_bytes);
tud_hid_report_complete_cb(instance, p_hid->epin_buf, (uint16_t) xferred_bytes);
}
}
// Received report