From 942e4d8d5837512150b01d44661de9e988785fc2 Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Sun, 28 Jan 2007 20:38:11 +0000 Subject: Do not change backlight timeout and disk spindown timeout when battery is low git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12137 a1c6a512-1295-4272-9138-f99709370657 --- firmware/powermgmt.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 7f796abde5..5c7607413c 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c @@ -347,7 +347,6 @@ static const char power_thread_name[] = "power"; static int poweroff_timeout = 0; static int powermgmt_est_runningtime_min = -1; -static bool low_battery = false; static bool sleeptimer_active = false; static long sleeptimer_endtick; @@ -623,27 +622,6 @@ static void handle_auto_poweroff(void) } #endif - /* For low battery condition do some power-saving stuff */ - if (!low_battery && battery_level_critical()) { -#if CONFIG_BACKLIGHT == BL_IRIVER_H100 - backlight_set_fade_in(0); - backlight_set_fade_out(0); -#endif -#if defined(CONFIG_BACKLIGHT) && !defined(BOOTLOADER) - if (backlight_get_current_timeout() > 2) -#endif - backlight_set_timeout(2); -#ifdef HAVE_REMOTE_LCD - remote_backlight_set_timeout(2); -#endif - ata_spindown(3); - low_battery = true; - } else if (low_battery && (battery_percent > 11)) { - backlight_set_timeout(10); - ata_spindown(10); - low_battery = false; - } - /* switch off unit if battery level is too low for reliable operation */ #if (CONFIG_BATTERY!=BATT_4AA_NIMH) && (CONFIG_BATTERY!=BATT_3AAA)&& \ (CONFIG_BATTERY!=BATT_1AA) -- cgit v1.2.3