summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2006-10-12 17:46:42 +0000
committerBarry Wardell <rockbox@barrywardell.net>2006-10-12 17:46:42 +0000
commite7da79fae409b3f7988593680ade96483b4e4516 (patch)
treeeb5a77b2c3619ea6106b1c52454736219a80c7d0
parent73e2f7bd6b576766a8a9565c439b0d6426e51f67 (diff)
downloadrockbox-e7da79fae409b3f7988593680ade96483b4e4516.zip
rockbox-e7da79fae409b3f7988593680ade96483b4e4516.tar.gz
rockbox-e7da79fae409b3f7988593680ade96483b4e4516.tar.bz2
rockbox-e7da79fae409b3f7988593680ade96483b4e4516.tar.xz
Add calibrated battery readings for H10.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11202 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/powermgmt.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index b9d67ce..ca68fb1 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -170,9 +170,9 @@ static const unsigned int battery_level_dangerous[BATTERY_TYPES_COUNT] =
#elif CONFIG_BATTERY == BATT_LIPOL1300 /* iRiver H1x0 */
339
#elif CONFIG_BATTERY == BATT_LPCS355385 /* iriver H10 20GB */
- 378
+ 376
#elif CONFIG_BATTERY == BATT_BP009 /* iriver H10 5/6GB */
- 378
+ 372
#else /* Player/recorder, NiMH */
475
#endif
@@ -196,10 +196,10 @@ static const short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
{ 337, 366, 372, 374, 378, 381, 385, 392, 399, 408, 417 }
#elif CONFIG_BATTERY == BATT_LPCS355385
/* iriver H10 20GB */
- { 378, 382, 386, 390, 395, 399, 404, 408, 413, 417, 422 }
+ { 376, 380, 385, 387, 390, 395, 402, 407, 411, 418, 424 }
#elif CONFIG_BATTERY == BATT_BP009
- /* iriver H10 5/6GB: Same as 20GB for now */
- { 378, 382, 386, 390, 395, 399, 404, 408, 413, 417, 422 }
+ /* iriver H10 5/6GB */
+ { 372, 374, 380, 382, 384, 388, 394, 402, 406, 415, 424 }
#elif CONFIG_BATTERY == BATT_1AA
/* These values are the same as for 3AAA divided by 3. */
/* May need recalibration. */
@@ -224,10 +224,10 @@ static const short percent_to_volt_charge[11] =
entering in trickle-charging). We will never reach 100%. */
340, 390, 394, 399, 400, 404, 407, 413, 417, 422, 426
#elif CONFIG_BATTERY == BATT_LPCS355385
- /* iriver H10 20GB: Same as iPod for now */
- 388, 392, 396, 400, 406, 410, 415, 419, 424, 428, 433
+ /* iriver H10 20GB */
+ 399, 403, 406, 408, 410, 412, 415, 418, 422, 426, 431
#elif CONFIG_BATTERY == BATT_BP009
- /* iriver H10 5/6GB: Same as iPod for now */
+ /* iriver H10 5/6GB: Not yet calibrated */
388, 392, 396, 400, 406, 410, 415, 419, 424, 428, 433
#else
/* values guessed, see