summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-11-25 20:05:04 +0000
committerJens Arnold <amiconn@rockbox.org>2007-11-25 20:05:04 +0000
commite54244480dd003a8fd0cc315089ff69da62ed230 (patch)
treefbd26b26e5e3fdc6dbb3bdbdcad70d32b5002411 /firmware
parentd63f2375a20e37c12a93737b34d723fb8cac3c26 (diff)
Convert 2 more settings to table settings. * Fix duplicate value display if the first value is selected in a table setting.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15805 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/powermgmt.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 54e7592987..18764591ab 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -197,11 +197,6 @@ void reset_poweroff_timer(void)
#else /* not SIMULATOR ******************************************************/
-static const unsigned char poweroff_idle_timeout_value[15] =
-{
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 30, 45, 60
-};
-
#if CONFIG_CHARGING == CHARGING_CONTROL
int long_delta; /* long term delta battery voltage */
int short_delta; /* short term delta battery voltage */
@@ -506,7 +501,7 @@ static void battery_status_update(void)
*/
static void handle_auto_poweroff(void)
{
- long timeout = poweroff_idle_timeout_value[poweroff_timeout]*60*HZ;
+ long timeout = poweroff_timeout*60*HZ;
int audio_stat = audio_status();
#if CONFIG_CHARGING