summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-10-14 00:57:23 +0000
committerJens Arnold <amiconn@rockbox.org>2004-10-14 00:57:23 +0000
commitba0a797b16b26413cabc844dbacf10e91d5a2ec7 (patch)
tree3d43a5a6bf825644117827a8239477279ccd3c70
parent2a0d541a38a27f829f673c17b0cae12af492a710 (diff)
No hard-coded minimum capacity any more
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5272 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/powermgmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 5648e52dab..e4bdd5192b 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -111,8 +111,8 @@ void set_battery_capacity(int capacity)
battery_capacity = capacity;
if (battery_capacity > BATTERY_CAPACITY_MAX)
battery_capacity = BATTERY_CAPACITY_MAX;
- if (battery_capacity < 1500)
- battery_capacity = 1500;
+ if (battery_capacity < BATTERY_CAPACITY_MIN)
+ battery_capacity = BATTERY_CAPACITY_MIN;
}
#if defined(HAVE_CHARGE_CTRL) || CONFIG_BATTERY == BATT_LIION2200