diff options
Diffstat (limited to 'board/casta/board.c')
-rw-r--r-- | board/casta/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/casta/board.c b/board/casta/board.c index 6d7bd9cf46..a14e669a01 100644 --- a/board/casta/board.c +++ b/board/casta/board.c @@ -146,7 +146,7 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT); 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. */ |