summaryrefslogtreecommitdiff
path: root/board/kukui/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/kukui/board.c')
-rw-r--r--board/kukui/board.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/kukui/board.c b/board/kukui/board.c
index 57ba1e82f7..68edc00d3a 100644
--- a/board/kukui/board.c
+++ b/board/kukui/board.c
@@ -247,7 +247,9 @@ int extpower_is_present(void)
if (board_vbus_source_enabled(CHARGE_PORT_USB_C))
usb_c_extpower_present = 0;
else
- usb_c_extpower_present = tcpm_get_vbus_level(CHARGE_PORT_USB_C);
+ usb_c_extpower_present = tcpm_check_vbus_level(
+ CHARGE_PORT_USB_C,
+ VBUS_PRESENT);
return usb_c_extpower_present || kukui_pogo_extpower_present();
}