mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-31 16:20:57 +00:00
usbh: Set interface recipient should be interface
This commit is contained in:
parent
007a8bd46d
commit
d52d659261
@ -1113,7 +1113,7 @@ bool tuh_interface_set(uint8_t daddr, uint8_t itf_num, uint8_t itf_alt,
|
|||||||
TU_LOG_USBH("Set Interface %u Alternate %u\r\n", itf_num, itf_alt);
|
TU_LOG_USBH("Set Interface %u Alternate %u\r\n", itf_num, itf_alt);
|
||||||
tusb_control_request_t const request = {
|
tusb_control_request_t const request = {
|
||||||
.bmRequestType_bit = {
|
.bmRequestType_bit = {
|
||||||
.recipient = TUSB_REQ_RCPT_DEVICE,
|
.recipient = TUSB_REQ_RCPT_INTERFACE,
|
||||||
.type = TUSB_REQ_TYPE_STANDARD,
|
.type = TUSB_REQ_TYPE_STANDARD,
|
||||||
.direction = TUSB_DIR_OUT
|
.direction = TUSB_DIR_OUT
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user