mirror of
https://github.com/sakumisu/CherryUSB.git
synced 2025-05-09 00:21:44 +08:00
fix(port/bl): overflow check
This commit is contained in:
parent
2a563dc41f
commit
f517adcf6d
@ -655,7 +655,7 @@ int usbd_ep_open(uint8_t busid, const struct usb_endpoint_descriptor *ep)
|
||||
|
||||
uint8_t ep_idx = USB_EP_GET_IDX(ep_addr);
|
||||
|
||||
if ((ep_idx > 4) && (ep_idx < 9)) {
|
||||
if (ep_idx > 4) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user