From 6d98c9e6b249465c9fff17c5600f4e7a40c3085c Mon Sep 17 00:00:00 2001 From: Dana Conrad Date: Sat, 18 Sep 2021 12:31:20 -0500 Subject: [PATCH] ErosQ Native: Adjust battery % scale Adjust the battery scale to be a little better. I've set the 100% (discharge) point to be where the battery sags to when it is done charging but still plugged in. Not quite sure how best to set the charge scale, it's just equal to the discharge scale for now. Change-Id: I9a2730c0b2051300af9eeddb4f67164f38a29002 --- .../mips/ingenic_x1000/erosqnative/power-erosqnative.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c b/firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c index c466db66b1..325893a4b7 100644 --- a/firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c +++ b/firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c @@ -36,7 +36,7 @@ const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] = 3470 }; -/* the OF shuts down at this voltage */ +/* The OF shuts down at this voltage */ const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] = { 3400 @@ -45,13 +45,13 @@ const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] = /* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */ const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = { - { 3400, 3639, 3697, 3723, 3757, 3786, 3836, 3906, 3980, 4050, 4159 } + { 3400, 3477, 3540, 3578, 3617, 3674, 3771, 3856, 3936, 4016, 4117 } }; /* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ const unsigned short percent_to_volt_charge[11] = { - 3485, 3780, 3836, 3857, 3890, 3930, 3986, 4062, 4158, 4185, 4196 + 3400, 3477, 3540, 3578, 3617, 3674, 3771, 3856, 3936, 4016, 4117 }; void power_init(void)