usbh: Set interface recipient should be interface

This commit is contained in:
Ryzee119 2024-06-18 14:02:36 +09:30 committed by GitHub
parent 007a8bd46d
commit d52d659261
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
tusb_control_request_t const request = {
.bmRequestType_bit = {
.recipient = TUSB_REQ_RCPT_DEVICE,
.recipient = TUSB_REQ_RCPT_INTERFACE,
.type = TUSB_REQ_TYPE_STANDARD,
.direction = TUSB_DIR_OUT
},