diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2006-10-12 17:46:42 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2006-10-12 17:46:42 +0000 |
commit | e7da79fae409b3f7988593680ade96483b4e4516 (patch) | |
tree | eb5a77b2c3619ea6106b1c52454736219a80c7d0 /firmware | |
parent | 73e2f7bd6b576766a8a9565c439b0d6426e51f67 (diff) | |
download | rockbox-e7da79fae409b3f7988593680ade96483b4e4516.tar.gz rockbox-e7da79fae409b3f7988593680ade96483b4e4516.zip |
Add calibrated battery readings for H10.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11202 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/powermgmt.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index b9d67ce02a..ca68fb168a 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -170,9 +170,9 @@ static const unsigned int battery_level_dangerous[BATTERY_TYPES_COUNT] = | |||
170 | #elif CONFIG_BATTERY == BATT_LIPOL1300 /* iRiver H1x0 */ | 170 | #elif CONFIG_BATTERY == BATT_LIPOL1300 /* iRiver H1x0 */ |
171 | 339 | 171 | 339 |
172 | #elif CONFIG_BATTERY == BATT_LPCS355385 /* iriver H10 20GB */ | 172 | #elif CONFIG_BATTERY == BATT_LPCS355385 /* iriver H10 20GB */ |
173 | 378 | 173 | 376 |
174 | #elif CONFIG_BATTERY == BATT_BP009 /* iriver H10 5/6GB */ | 174 | #elif CONFIG_BATTERY == BATT_BP009 /* iriver H10 5/6GB */ |
175 | 378 | 175 | 372 |
176 | #else /* Player/recorder, NiMH */ | 176 | #else /* Player/recorder, NiMH */ |
177 | 475 | 177 | 475 |
178 | #endif | 178 | #endif |
@@ -196,10 +196,10 @@ static const short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = | |||
196 | { 337, 366, 372, 374, 378, 381, 385, 392, 399, 408, 417 } | 196 | { 337, 366, 372, 374, 378, 381, 385, 392, 399, 408, 417 } |
197 | #elif CONFIG_BATTERY == BATT_LPCS355385 | 197 | #elif CONFIG_BATTERY == BATT_LPCS355385 |
198 | /* iriver H10 20GB */ | 198 | /* iriver H10 20GB */ |
199 | { 378, 382, 386, 390, 395, 399, 404, 408, 413, 417, 422 } | 199 | { 376, 380, 385, 387, 390, 395, 402, 407, 411, 418, 424 } |
200 | #elif CONFIG_BATTERY == BATT_BP009 | 200 | #elif CONFIG_BATTERY == BATT_BP009 |
201 | /* iriver H10 5/6GB: Same as 20GB for now */ | 201 | /* iriver H10 5/6GB */ |
202 | { 378, 382, 386, 390, 395, 399, 404, 408, 413, 417, 422 } | 202 | { 372, 374, 380, 382, 384, 388, 394, 402, 406, 415, 424 } |
203 | #elif CONFIG_BATTERY == BATT_1AA | 203 | #elif CONFIG_BATTERY == BATT_1AA |
204 | /* These values are the same as for 3AAA divided by 3. */ | 204 | /* These values are the same as for 3AAA divided by 3. */ |
205 | /* May need recalibration. */ | 205 | /* May need recalibration. */ |
@@ -224,10 +224,10 @@ static const short percent_to_volt_charge[11] = | |||
224 | entering in trickle-charging). We will never reach 100%. */ | 224 | entering in trickle-charging). We will never reach 100%. */ |
225 | 340, 390, 394, 399, 400, 404, 407, 413, 417, 422, 426 | 225 | 340, 390, 394, 399, 400, 404, 407, 413, 417, 422, 426 |
226 | #elif CONFIG_BATTERY == BATT_LPCS355385 | 226 | #elif CONFIG_BATTERY == BATT_LPCS355385 |
227 | /* iriver H10 20GB: Same as iPod for now */ | 227 | /* iriver H10 20GB */ |
228 | 388, 392, 396, 400, 406, 410, 415, 419, 424, 428, 433 | 228 | 399, 403, 406, 408, 410, 412, 415, 418, 422, 426, 431 |
229 | #elif CONFIG_BATTERY == BATT_BP009 | 229 | #elif CONFIG_BATTERY == BATT_BP009 |
230 | /* iriver H10 5/6GB: Same as iPod for now */ | 230 | /* iriver H10 5/6GB: Not yet calibrated */ |
231 | 388, 392, 396, 400, 406, 410, 415, 419, 424, 428, 433 | 231 | 388, 392, 396, 400, 406, 410, 415, 419, 424, 428, 433 |
232 | #else | 232 | #else |
233 | /* values guessed, see | 233 | /* values guessed, see |