summaryrefslogtreecommitdiff
path: root/board/kodama/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/kodama/board.c')
-rw-r--r--board/kodama/board.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/kodama/board.c b/board/kodama/board.c
index fdb40d32b8..2fab43d3ac 100644
--- a/board/kodama/board.c
+++ b/board/kodama/board.c
@@ -216,7 +216,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;
}