diff --git a/src/usb/hw_dwc_otg.c b/src/usb/hw_dwc_otg.c index 3d316f3..a802b61 100644 --- a/src/usb/hw_dwc_otg.c +++ b/src/usb/hw_dwc_otg.c @@ -287,7 +287,7 @@ static void dwc_otg_configure_ep(uint8_t epnr, uint8_t type, uint32_t size) * Check we aren't trying to map it to multiple endpoints. */ ep->rx = NULL; for (i = 0; i < conf_nr_ep; i++) - ASSERT(ep->rx != rx_bufn); + ASSERT(eps[i].rx != rx_bufn); ep->rx = rx_bufn; ep->rx_nr = ARRAY_SIZE(rx_bufn); }