Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9edd7c0a authored by LuK1337's avatar LuK1337 Committed by MajorP93
Browse files

power: oplus_charger: Report discharging status on ui soc update

This fixes issue where AOSP Settings thinks we are connected but not
charging.

Change-Id: I8cf8d6d10c23f130731a26e991d0bf9b20b20721
parent 75126058
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7471,7 +7471,7 @@ static void oplus_chg_update_ui_soc(struct oplus_chg_chip *chip)
		}
	} else {
		cnt = 0;
		chip->prop_status = POWER_SUPPLY_STATUS_NOT_CHARGING;
                chip->prop_status = POWER_SUPPLY_STATUS_DISCHARGING;
		soc_up_count = 0;
		allow_uisoc_down = false;
		if (chip->smooth_soc <= chip->ui_soc || vbatt_too_low) {