mirror of
https://github.com/ReneLergner/WPinternals.git
synced 2026-06-14 03:16:40 +10:00
Fixed charging status indicator reporting incorrect current values
This commit is contained in:
@@ -189,7 +189,13 @@ namespace WPinternals
|
||||
eMMC = Manufacturer + " " + MemSizeDouble.ToString() + " GB";
|
||||
SamsungWarningVisible = (MID == 0x0015);
|
||||
|
||||
ChargingStatus = CurrentModel.ReadCurrentChargeLevel() + "% - " + CurrentModel.ReadCurrentChargeCurrent() + " mA";
|
||||
int chargecurrent = CurrentModel.ReadCurrentChargeCurrent().Value;
|
||||
|
||||
if (chargecurrent < 0)
|
||||
ChargingStatus = CurrentModel.ReadCurrentChargeLevel() + "% - " + ((-1) * CurrentModel.ReadCurrentChargeCurrent()) + " mA (discharging)";
|
||||
else
|
||||
ChargingStatus = CurrentModel.ReadCurrentChargeLevel() + "% - " + CurrentModel.ReadCurrentChargeCurrent() + " mA (charging)";
|
||||
|
||||
LogFile.Log("Charging status: " + ChargingStatus);
|
||||
|
||||
PhoneInfo Info = CurrentModel.ReadPhoneInfo(true);
|
||||
|
||||
Reference in New Issue
Block a user