diff options
author | Vitja Makarov <vitja.makarov@gmail.com> | 2008-12-26 19:31:48 +0000 |
---|---|---|
committer | Vitja Makarov <vitja.makarov@gmail.com> | 2008-12-26 19:31:48 +0000 |
commit | 78d625f84011ba953e125cf20300b7fc2fea8c4b (patch) | |
tree | bbb8708c007148a3aac0161fd0f6e617529d7f76 /firmware | |
parent | eaea11230a09375970a10d59137f0af2601f9eb9 (diff) |
i7: set low-battery values and enable shutdown on low-battery
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19597 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/config-iaudio7.h | 2 | ||||
-rw-r--r-- | firmware/target/arm/tcc77x/iaudio7/powermgmt-iaudio7.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/firmware/export/config-iaudio7.h b/firmware/export/config-iaudio7.h index 89587b552e..601ff5491f 100644 --- a/firmware/export/config-iaudio7.h +++ b/firmware/export/config-iaudio7.h @@ -128,8 +128,6 @@ #define BATTERY_CAPACITY_INC 50 /* capacity increment */ #define BATTERY_TYPES_COUNT 1 /* only one type */ -/* define this if the unit should not shut down on low battery. */ -#define NO_LOW_BATTERY_SHUTDOWN #define CONFIG_CHARGING CHARGING_SIMPLE #ifndef SIMULATOR diff --git a/firmware/target/arm/tcc77x/iaudio7/powermgmt-iaudio7.c b/firmware/target/arm/tcc77x/iaudio7/powermgmt-iaudio7.c index e391ada10a..9b65bbde1f 100644 --- a/firmware/target/arm/tcc77x/iaudio7/powermgmt-iaudio7.c +++ b/firmware/target/arm/tcc77x/iaudio7/powermgmt-iaudio7.c @@ -30,13 +30,13 @@ unsigned short current_voltage = 5150; const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] = { /* FIXME: calibrate value */ - 3380 + 4400 }; const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] = { /* FIXME: calibrate value */ - 3300 + 4600 }; /* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */ |