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
This commit is contained in:
Vitja Makarov 2008-12-26 19:31:48 +00:00
parent eaea11230a
commit 78d625f840
2 changed files with 2 additions and 4 deletions

View file

@ -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

View file

@ -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 */