diff options
| author | sakimisu <[email protected]> | 2023-04-22 00:00:33 +0800 |
|---|---|---|
| committer | sakimisu <[email protected]> | 2023-04-22 00:00:33 +0800 |
| commit | ca5d2902f378b9d619bb57038a33d3e0b1a70c0b (patch) | |
| tree | 90ee836691e4c215e09cf87d9556f524ed5d0cdd | |
| parent | d35d5bc12fe6c841a6d0069d400271b7a1d6320a (diff) | |
do not check intf when calls endpoint handler
| -rw-r--r-- | core/usbd_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/usbd_core.c b/core/usbd_core.c index 1afd52a6..d78e8fd8 100644 --- a/core/usbd_core.c +++ b/core/usbd_core.c @@ -770,7 +770,7 @@ static int usbd_class_request_handler(struct usb_setup_packet *setup, uint8_t ** { struct usbd_interface *intf = usb_slist_entry(i, struct usbd_interface, list); - if (intf->class_endpoint_handler && (intf->intf_num == ((setup->wIndex >> 8) & 0xFF))) { + if (intf->class_endpoint_handler) { return intf->class_endpoint_handler(setup, data, len); } } |
