We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 096b6ec commit 878f2b5Copy full SHA for 878f2b5
src/class/hid/hid_host.c
@@ -465,8 +465,10 @@ bool hidh_set_config(uint8_t dev_addr, uint8_t itf_num)
465
466
static void process_set_config(tuh_xfer_t* xfer)
467
{
468
- // Stall is a valid response for SET_IDLE, therefore we could ignore its result
469
- if ( xfer->setup->bRequest != HID_REQ_CONTROL_SET_IDLE )
+ // Stall is a valid response for SET_IDLE, sometime SET_PROTOCOL as well
+ // therefore we could ignore its result
470
+ if ( !(xfer->setup->bRequest == HID_REQ_CONTROL_SET_IDLE ||
471
+ xfer->setup->bRequest == HID_REQ_CONTROL_SET_PROTOCOL) )
472
473
TU_ASSERT(xfer->result == XFER_RESULT_SUCCESS, );
474
}
0 commit comments