diff options
Diffstat (limited to 'board/garg')
-rw-r--r-- | board/garg/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/garg/board.c b/board/garg/board.c index db37841560..8da97ef1c8 100644 --- a/board/garg/board.c +++ b/board/garg/board.c @@ -295,7 +295,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. */ |