fixed C standard

This commit is contained in:
xieyangrun
2022-03-31 18:06:22 +08:00
committed by sakumisu
parent a6ff2668c2
commit dfa977caa2

View File

@@ -564,10 +564,11 @@ int usbh_ep_alloc(usbh_epinfo_t *ep, const struct usbh_endpoint_cfg *ep_cfg)
uint32_t chidx;
uint16_t used = 0;
uint8_t fifo_size;
uint8_t old_ep_index;
hport = ep_cfg->hport;
uint32_t old_index = USBC_GetActiveEp();
old_ep_index = USBC_GetActiveEp();
if (ep_cfg->ep_type == USB_ENDPOINT_TYPE_CONTROL) {
if (hport->parent == NULL) {