forked from len0rd/rockbox
First lame attempt to show correct battery level on the iRiver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6258 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
09e55a9218
commit
43bf39edb7
6 changed files with 26 additions and 4 deletions
|
|
@ -35,6 +35,14 @@
|
|||
#define BATTERY_CAPACITY_MIN 500
|
||||
#define BATTERY_CAPACITY_MAX 1500 /* max. capacity selectable in settings */
|
||||
#define BATTERY_TYPES_COUNT 2 /* Alkalines or NiMH */
|
||||
#elif CONFIG_BATTERY == BATT_LIPOL1300 /* iRiver H1x0 */
|
||||
#define BATTERY_LEVEL_SHUTDOWN 306 /* 3.06V */
|
||||
#define BATTERY_LEVEL_EMPTY 330 /* 3.30V */
|
||||
#define BATTERY_LEVEL_DANGEROUS 339 /* 3.39V */
|
||||
#define BATTERY_LEVEL_FULL 400 /* 4.00V */
|
||||
#define BATTERY_CAPACITY_MIN 1300
|
||||
#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable in settings */
|
||||
#define BATTERY_TYPES_COUNT 1
|
||||
#else /* Recorder, NiMH */
|
||||
#define BATTERY_LEVEL_SHUTDOWN 450 /* 4.50V */
|
||||
#define BATTERY_LEVEL_EMPTY 465 /* 4.65V */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue