summaryrefslogtreecommitdiff
path: root/board/fleex/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/fleex/board.c')
-rw-r--r--board/fleex/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/fleex/board.c b/board/fleex/board.c
index 57f13b5e49..7ee6495b86 100644
--- a/board/fleex/board.c
+++ b/board/fleex/board.c
@@ -258,7 +258,7 @@ void lid_angle_peripheral_enable(int enable)
void board_overcurrent_event(int port, int is_overcurrented)
{
/* Sanity check the port. */
- if ((port < 0) || (port >= CONFIG_USB_PD_PORT_COUNT))
+ if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
/* Note that the level is inverted because the pin is active low. */