summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/hosted/agptek/powermgmt-agptek.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/firmware/target/hosted/agptek/powermgmt-agptek.c b/firmware/target/hosted/agptek/powermgmt-agptek.c
index 6bfccb4115..bd7e4157d6 100644
--- a/firmware/target/hosted/agptek/powermgmt-agptek.c
+++ b/firmware/target/hosted/agptek/powermgmt-agptek.c
@@ -32,18 +32,16 @@ const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
32 3400 32 3400
33}; 33};
34 34
35/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled 35/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */
36 * NOTE: not calibrated simple linear scale for now
37 */
38const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = 36const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
39{ 37{
40 { 3400, 3480, 3560, 3640, 3720, 3800, 3880, 3960, 4040, 4120, 4200 } 38 { 3400, 3675, 3715, 3750, 3775, 3810, 3850, 3915, 3985, 4060, 4155 }
41}; 39};
42 40
43/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ 41/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */
44const unsigned short const percent_to_volt_charge[11] = 42const unsigned short const percent_to_volt_charge[11] =
45{ 43{
46 3450, 3670, 3721, 3751, 3782, 3821, 3876, 3941, 4034, 4125, 4200 44 3485, 3780, 3836, 3857, 3890, 3930, 3986, 4062, 4158, 4185, 4196
47}; 45};
48 46
49unsigned int power_input_status(void) 47unsigned int power_input_status(void)