Merge "BatteryMonitor: report current_now in uA"

This commit is contained in:
Yifan Hong 2020-04-09 21:40:01 +00:00 committed by Gerrit Code Review
commit 559270448d

View file

@ -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);