summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-11-24 14:43:31 +0700
committerGitHub <[email protected]>2018-11-24 14:43:31 +0700
commit3bb53273cd3770328f55ba317af3df0cce4333c1 (patch)
tree8148c662b9773f6af64ea71c9eac6ae3a7e402f3 /src/class
parenta1c596490aa40863cd5f1e36a821157ffeab2af6 (diff)
parent47fabe42edaae4a5da6aa0d48c664a9184578753 (diff)
Merge pull request #14 from tannewt/discarded_qualifiers
A few more updates
Diffstat (limited to 'src/class')
-rw-r--r--src/class/hid/hid_device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/class/hid/hid_device.c b/src/class/hid/hid_device.c
index f1ecec3c7..c89c15acc 100644
--- a/src/class/hid/hid_device.c
+++ b/src/class/hid/hid_device.c
@@ -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