diff options
Diffstat (limited to 'board/elm/board.c')
-rw-r--r-- | board/elm/board.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/elm/board.c b/board/elm/board.c index fc8cf73a3b..87b2db8281 100644 --- a/board/elm/board.c +++ b/board/elm/board.c @@ -330,6 +330,8 @@ int board_set_active_charge_port(int charge_port) */ void board_set_charge_limit(int port, int supplier, int charge_ma) { + /* Limit input current 95% ratio on elm board for safety */ + charge_ma = (charge_ma * 95) / 100; charge_set_input_current_limit(MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT)); pd_send_host_event(PD_EVENT_POWER_CHANGE); |