mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
implement pigrew review
This commit is contained in:
parent
bd8b4e48dc
commit
981e64d8a1
@ -241,7 +241,8 @@ bool hidd_control_request(uint8_t rhport, tusb_control_request_t const * p_reque
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case HID_REQ_CONTROL_SET_REPORT:
|
case HID_REQ_CONTROL_SET_REPORT:
|
||||||
tud_control_xfer(rhport, p_request, p_hid->epout_buf, tu_min16(sizeof(p_hid->epout_buf), p_request->wLength));
|
TU_VERIFY(p_request->wLength <= sizeof(p_hid->epout_buf));
|
||||||
|
tud_control_xfer(rhport, p_request, p_hid->epout_buf, p_request->wLength);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HID_REQ_CONTROL_SET_IDLE:
|
case HID_REQ_CONTROL_SET_IDLE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user