summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/galtic/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/galtic/board.c b/board/galtic/board.c
index a1605303cd..47cf77202c 100644
--- a/board/galtic/board.c
+++ b/board/galtic/board.c
@@ -579,7 +579,7 @@ int board_set_active_charge_port(int port)
* Stop the charger IC from switching while changing ports. Otherwise,
* we can overcurrent the adapter we're switching to. (crbug.com/926056)
*/
- if (old_port != CHARGE_PORT_NONE)
+ if ((old_port != CHARGE_PORT_NONE) && (old_port != port))
charger_discharge_on_ac(1);
/* Enable requested charge port. */