summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan Conrad <[email protected]>2019-09-20 12:27:41 -0400
committerNathan Conrad <[email protected]>2019-09-20 12:27:41 -0400
commit2281a514846402af68aa4c97fcd206611c0969a1 (patch)
tree6351018e65af887acd08bc8e63ba3cc23f27ebce /src
parentf241ff389f9494836cdc45e621726c0b69b8daed (diff)
Revert "Also need to just return false in the case that it isn't an interface control event. We shouldn't assert. This normally isn't an"
This reverts commit f241ff389f9494836cdc45e621726c0b69b8daed.
Diffstat (limited to 'src')
-rw-r--r--src/class/hid/hid_device.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/class/hid/hid_device.c b/src/class/hid/hid_device.c
index b57d6219f..fee44e30c 100644
--- a/src/class/hid/hid_device.c
+++ b/src/class/hid/hid_device.c
@@ -193,10 +193,6 @@ bool hidd_open(uint8_t rhport, tusb_desc_interface_t const * desc_itf, uint16_t
// return false to stall control endpoint (e.g unsupported request)
bool hidd_control_request(uint8_t rhport, tusb_control_request_t const * p_request)
{
- if (p_request->bmRequestType_bit.recipient != TUSB_REQ_RCPT_INTERFACE)
- {
- return false;
- }
hidd_interface_t* p_hid = get_interface_by_itfnum( (uint8_t) p_request->wIndex );
TU_ASSERT(p_hid);