diff options
author | Michael Sparmann <theseven@rockbox.org> | 2010-02-17 15:56:30 +0000 |
---|---|---|
committer | Michael Sparmann <theseven@rockbox.org> | 2010-02-17 15:56:30 +0000 |
commit | b3c18aeb4da93fe07a5021ad0405c2349d7d793e (patch) | |
tree | 477740a57359ccdfa61df60420ae4fe8476d4ef3 /firmware/target/arm/s5l8700 | |
parent | 8f33879fed408e13f7dee050a1c2dc8fa53496fb (diff) |
Somewhat calibrated battery parameters for Nano2G - still not very accurate though, especially while charging.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24722 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/s5l8700')
-rw-r--r-- | firmware/target/arm/s5l8700/ipodnano2g/powermgmt-nano2g.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/s5l8700/ipodnano2g/powermgmt-nano2g.c b/firmware/target/arm/s5l8700/ipodnano2g/powermgmt-nano2g.c index 689e369da2..fc63a9cc54 100644 --- a/firmware/target/arm/s5l8700/ipodnano2g/powermgmt-nano2g.c +++ b/firmware/target/arm/s5l8700/ipodnano2g/powermgmt-nano2g.c @@ -26,20 +26,20 @@ const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] = { /* TODO: this is just an initial guess */ - 3400 + 3600 }; const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] = { /* TODO: this is just an initial guess */ - 3300 + 3350 }; /* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */ const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = { /* TODO: simple uncalibrated curve, linear except for first 10% */ - { 3300, 3390, 3480, 3570, 3660, 3750, 3840, 3930, 4020, 4110, 4200 } + { 3377, 3741, 3783, 3820, 3856, 3892, 3934, 3989, 4061, 4144, 4249 } }; #if CONFIG_CHARGING @@ -47,7 +47,7 @@ const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = const unsigned short percent_to_volt_charge[11] = { /* TODO: simple uncalibrated curve, linear except for first 10% */ - 3300, 3390, 3480, 3570, 3660, 3750, 3840, 3930, 4020, 4110, 4200 + 3344, 3969, 4038, 4105, 4205, 4310, 4312, 4314, 4316, 4318, 4320 }; #endif /* CONFIG_CHARGING */ |