BatteryMonitor: report current_now in uA
/sys/class/power_supply/*/current_now should return uA and the HAL
expects uA too.
Test: VtsHalHealthV2_0TargetTest
Bug: 136717180
Change-Id: I675be1ae645413b9494af4a5d49955aad5bd4f2e
(cherry picked from commit e5bd5f914f
)
Merged-In: I675be1ae645413b9494af4a5d49955aad5bd4f2e
This commit is contained in:
parent
f7e5fb6f40
commit
7cc7a54abc
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ void BatteryMonitor::updateValues(void) {
|
|||
props.batteryVoltage = getIntField(mHealthdConfig->batteryVoltagePath) / 1000;
|
||||
|
||||
if (!mHealthdConfig->batteryCurrentNowPath.isEmpty())
|
||||
props.batteryCurrent = getIntField(mHealthdConfig->batteryCurrentNowPath) / 1000;
|
||||
props.batteryCurrent = getIntField(mHealthdConfig->batteryCurrentNowPath);
|
||||
|
||||
if (!mHealthdConfig->batteryFullChargePath.isEmpty())
|
||||
props.batteryFullCharge = getIntField(mHealthdConfig->batteryFullChargePath);
|
||||
|
|
Loading…
Reference in a new issue