From dcec32c361eb3638c3fc67ed7de7af4aa614f325 Mon Sep 17 00:00:00 2001 From: Huang Chaoqun Date: Tue, 19 Sep 2023 03:22:55 +0000 Subject: [PATCH] power: supply: test-power: modify battery_voltage healthd will voltage_now/1000 cause batteryVoltageMillivolts too small which cause BatteryStatsHistory.setBitField() error Signed-off-by: Huang Chaoqun Change-Id: I8da022a2b7461ac62f0cdcb34a2488a333967523 --- drivers/power/supply/test_power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/test_power.c b/drivers/power/supply/test_power.c index d302a31116ba..06c023f4358c 100644 --- a/drivers/power/supply/test_power.c +++ b/drivers/power/supply/test_power.c @@ -33,7 +33,7 @@ static int battery_health = POWER_SUPPLY_HEALTH_GOOD; static int battery_present = 1; /* true */ static int battery_technology = POWER_SUPPLY_TECHNOLOGY_LION; static int battery_capacity = 50; -static int battery_voltage = 3300; +static int battery_voltage = 3300000; static int battery_charge_counter = -1000; static int battery_current = -1600;