summaryrefslogtreecommitdiff
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2010-05-15 21:27:22 +0000
committerMichael Sevakis <jethead71@rockbox.org>2010-05-15 21:27:22 +0000
commit964dcb33b6b55347ee6ad4020bd00843fbcd2a1d (patch)
tree337ecee78c71e4b08b251508acd4135d3fc70601 /firmware/powermgmt.c
parentb6c3bc1cc90a05d462abc674ee7fc2f9567be453 (diff)
Revert r26055 since it breaks certain Archos targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26067 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r--firmware/powermgmt.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index bf5734c264..f1dd83ef52 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -358,12 +358,8 @@ static void handle_auto_poweroff(void)
if (usb_inserted()
#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING)
-#if CONFIG_CHARGING >= CHARGING_MONITOR
- || charging_state()
-#else
|| charger_input_state != NO_CHARGER
#endif
-#endif
) {
DEBUGF("Sleep timer timeout. Stopping...\n");
set_sleep_timer(0);