1
0
Fork 0
forked from len0rd/rockbox

Fix reds. The battery_capacity setting is used even for fixed-battery targets.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27976 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2010-09-01 23:49:28 +00:00
parent 8ec51135b6
commit 24424bab2a
4 changed files with 12 additions and 3 deletions

View file

@ -763,7 +763,15 @@ const struct settings_list settings[] = {
#endif
"max files in dir", UNIT_INT, 50, 10000, 50,
NULL, NULL, NULL),
#if defined(BATTERY_CAPACITY_INC) && BATTERY_CAPACITY_INC > 0
/* use this setting for user code even if there's no exchangable battery
* support enabled */
#ifdef BATTERY_CAPACITY_DEFAULT
/* define min/max/inc for this file if there's only one battery */
#ifndef BATTERY_CAPACITY_MIN
#define BATTERY_CAPACITY_MIN BATTERY_CAPACITY_DEFAULT
#define BATTERY_CAPACITY_MAX BATTERY_CAPACITY_DEFAULT
#define BATTERY_CAPACITY_INC 0
#endif
INT_SETTING(0, battery_capacity, LANG_BATTERY_CAPACITY,
BATTERY_CAPACITY_DEFAULT, "battery capacity", UNIT_MAH,
BATTERY_CAPACITY_MIN, BATTERY_CAPACITY_MAX,