diff options
Diffstat (limited to 'common/dps.c')
-rw-r--r-- | common/dps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/dps.c b/common/dps.c index f3a8414e9c..7b00822830 100644 --- a/common/dps.c +++ b/common/dps.c @@ -397,7 +397,7 @@ static bool has_new_power_request(struct pdo_candidate *cand) if (mv > max_mv) continue; - mw = ma * mv / 1000; + mw = MIN(ma, PD_MAX_CURRENT_MA) * mv / 1000; efficient = is_more_efficient(mv, cand->mv, batt_mv, batt_pwr, input_pwr_avg); |