diff options
Diffstat (limited to 'board/yorp/board.c')
-rw-r--r-- | board/yorp/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/yorp/board.c b/board/yorp/board.c index cc44a6c088..89dee7fb41 100644 --- a/board/yorp/board.c +++ b/board/yorp/board.c @@ -249,7 +249,7 @@ DECLARE_HOOK(HOOK_INIT, post_old_board_warning, HOOK_PRIO_INIT_I2C + 1); 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. */ |