Skip to content

Commit 2492965

Browse files
committed
set charger current to 0 when switching ports
Signed-off-by: Kieran Levin <[email protected]>
1 parent f4b0446 commit 2492965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

board/hx20/cypress5525.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ int board_set_active_charge_port(int charge_port)
14981498
/* force to reduce the input current limit when battery is connected */
14991499
if (board_batt_is_present() == BP_YES) {
15001500
force_reduce = 1;
1501-
charge_set_input_current_limit(500, pd_port_states[charge_port].voltage);
1501+
charge_set_input_current_limit(0, pd_port_states[charge_port].voltage);
15021502
}
15031503

15041504
gpio_set_level(GPIO_TYPEC0_VBUS_ON_EC, 0);

0 commit comments

Comments
 (0)