diff options
Diffstat (limited to 'chip/stm32')
-rw-r--r-- | chip/stm32/usb_pd_phy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/usb_pd_phy.c b/chip/stm32/usb_pd_phy.c index 7296ae245f..426cac15d3 100644 --- a/chip/stm32/usb_pd_phy.c +++ b/chip/stm32/usb_pd_phy.c @@ -463,7 +463,7 @@ void pd_rx_handler(void) } #endif - for (i = 0; i < CONFIG_USB_PD_PORT_MAX_COUNT; i++) { + for (i = 0; i < board_get_usb_pd_port_count(); i++) { if (pending & EXTI_COMP_MASK(i)) { rx_edge_ts[i][rx_edge_ts_idx[i]].val = get_time().val; next_idx = (rx_edge_ts_idx[i] == |