Fixing warning
This commit is contained in:
@@ -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
|
// Inform application about the issue
|
||||||
if (tud_hid_report_issue_cb)
|
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
|
// Allow a new transfer to be received if issue happened on an OUT endpoint
|
||||||
|
@@ -119,7 +119,7 @@ TU_ATTR_WEAK bool tud_hid_set_idle_cb(uint8_t instance, uint8_t idle_rate);
|
|||||||
TU_ATTR_WEAK void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint16_t len);
|
TU_ATTR_WEAK void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint16_t len);
|
||||||
|
|
||||||
// Invoked when a transfer wasn't successful
|
// Invoked when a transfer wasn't successful
|
||||||
TU_ATTR_WEAK void tud_hid_report_issue_cb(uint8_t instance, uint8_t ep_addr, xfer_result_t result, uint16_t xferred_bytes);
|
TU_ATTR_WEAK void tud_hid_report_issue_cb(uint8_t instance, uint8_t ep_addr, xfer_result_t result, uint16_t len);
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// Inline Functions
|
// Inline Functions
|
||||||
|
Reference in New Issue
Block a user