mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-18 16:21:18 +00:00
One tweak to make -Wdiscarded-qualifiers happy.
This commit is contained in:
parent
bf8c4612dc
commit
47fabe42ed
@ -418,7 +418,8 @@ bool hidd_control_request(uint8_t rhport, tusb_control_request_t const * p_reque
|
||||
|
||||
if (p_request->bRequest == TUSB_REQ_GET_DESCRIPTOR && desc_type == HID_DESC_TYPE_REPORT)
|
||||
{
|
||||
usbd_control_xfer(rhport, p_request, p_hid->desc_report, p_hid->desc_len);
|
||||
// Cast away the const on p_hid->desc_report because we know it won't be modified.
|
||||
usbd_control_xfer(rhport, p_request, (void *)p_hid->desc_report, p_hid->desc_len);
|
||||
}else
|
||||
{
|
||||
return false; // stall unsupported request
|
||||
|
Loading…
x
Reference in New Issue
Block a user