Skip to content

Commit e5bd5f9

Browse files
committed
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
1 parent 79f3d26 commit e5bd5f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

healthd/BatteryMonitor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ void BatteryMonitor::updateValues(void) {
258258
props.batteryVoltage = getIntField(mHealthdConfig->batteryVoltagePath) / 1000;
259259

260260
if (!mHealthdConfig->batteryCurrentNowPath.isEmpty())
261-
props.batteryCurrent = getIntField(mHealthdConfig->batteryCurrentNowPath) / 1000;
261+
props.batteryCurrent = getIntField(mHealthdConfig->batteryCurrentNowPath);
262262

263263
if (!mHealthdConfig->batteryFullChargePath.isEmpty())
264264
props.batteryFullCharge = getIntField(mHealthdConfig->batteryFullChargePath);

0 commit comments

Comments
 (0)