From 5c09ec17261fc2217009f72ec45c1f00df51ccde Mon Sep 17 00:00:00 2001 From: Ruchi Kandoi Date: Thu, 25 Feb 2016 16:19:30 -0800 Subject: [PATCH] healthd: Correct the scaling factor for maxVoltage and maxCurrent. Change-Id: I93a4c916d0c742710c00c0b15d8d1de6b8f8d1c2 Signed-off-by: Ruchi Kandoi --- healthd/BatteryMonitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/healthd/BatteryMonitor.cpp b/healthd/BatteryMonitor.cpp index 110ed038f..ae84d1e18 100644 --- a/healthd/BatteryMonitor.cpp +++ b/healthd/BatteryMonitor.cpp @@ -39,7 +39,7 @@ #define FAKE_BATTERY_CAPACITY 42 #define FAKE_BATTERY_TEMPERATURE 424 #define ALWAYS_PLUGGED_CAPACITY 100 -#define MILLION 10000000.0 +#define MILLION 1.0e6 #define DEFAULT_VBUS_VOLTAGE 5000000 namespace android {