summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Conrad <dconrad@fastmail.com>2021-09-18 12:31:20 -0500
committerSolomon Peachy <pizza@shaftnet.org>2021-09-26 18:27:53 -0400
commit6d98c9e6b249465c9fff17c5600f4e7a40c3085c (patch)
tree77f2c15d23cb70ab025bdcccaee46fd872233892
parent38b2648f488fc1d91daa1fcc6f615068f1e4fc9c (diff)
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
-rw-r--r--firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c6
1 files 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)