Fixing warning

This commit is contained in:
Rocky04
2023-09-13 22:03:44 +00:00
parent 11fba84334
commit 81e63ed6d8
2 changed files with 2 additions and 2 deletions

View File

@@ -398,7 +398,7 @@ bool hidd_xfer_cb(uint8_t rhport, uint8_t ep_addr, xfer_result_t result, uint32_
// Inform application about the issue
if (tud_hid_report_issue_cb)
{
tud_hid_report_issue_cb(instance, ep_addr, result, xferred_bytes);
tud_hid_report_issue_cb(instance, ep_addr, result, (uint16_t) xferred_bytes);
}
// Allow a new transfer to be received if issue happened on an OUT endpoint