diff options
Diffstat (limited to 'board/cret/board.c')
-rw-r--r-- | board/cret/board.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/board/cret/board.c b/board/cret/board.c index 55c79f8778..34091c0518 100644 --- a/board/cret/board.c +++ b/board/cret/board.c @@ -595,7 +595,12 @@ static void fw_config_tablet_mode(void) static void board_extpower(void) { - int extpower_present = extpower_is_present(); + int extpower_present; + + if (pd_is_connected(0)) + extpower_present = extpower_is_present(); + else + extpower_present = 0; gpio_set_level(GPIO_EC_ACOK_OTG, extpower_present); } |