diff options
| author | sakumisu <[email protected]> | 2024-08-25 20:19:33 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-08-25 20:19:33 +0800 |
| commit | f517adcf6d85aa7de4edaea3ccc00228bd925550 (patch) | |
| tree | 4ff845e7e648f0db2090d6f56731b939cb08bde8 | |
| parent | 2a563dc41fe5e0f57a2f6cca67fbd0a49b51685d (diff) | |
fix(port/bl): overflow check
| -rw-r--r-- | port/bouffalolab/usb_dc_bl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/port/bouffalolab/usb_dc_bl.c b/port/bouffalolab/usb_dc_bl.c index 5ed0892d..b6859f8d 100644 --- a/port/bouffalolab/usb_dc_bl.c +++ b/port/bouffalolab/usb_dc_bl.c @@ -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; } |
