diff options
Diffstat (limited to 'common/charge_manager.c')
-rw-r--r-- | common/charge_manager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/charge_manager.c b/common/charge_manager.c index 07af626f5a..3d78d5874b 100644 --- a/common/charge_manager.c +++ b/common/charge_manager.c @@ -251,7 +251,8 @@ static void charge_manager_fill_power_info(int port, else /* Find highest priority supplier */ for (i = 0; i < CHARGE_SUPPLIER_COUNT; ++i) - if (available_charge[i][port].voltage > 0 && + if (available_charge[i][port].current > 0 && + available_charge[i][port].voltage > 0 && (sup == CHARGE_SUPPLIER_NONE || supplier_priority[i] < supplier_priority[sup] || |