summaryrefslogtreecommitdiffstats
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2011-02-28 23:14:18 +0000
committerThomas Jarosch <tomj@simonv.com>2011-02-28 23:14:18 +0000
commit3db9fd199f880bad9a3ab3adb2906feed3ec77b0 (patch)
tree5e5b7a7b90b3e02da2683f6319555d788cd421a9 /firmware/powermgmt.c
parent2647d11354d95bae15d3a119f482348775a77491 (diff)
downloadrockbox-3db9fd199f880bad9a3ab3adb2906feed3ec77b0.tar.gz
rockbox-3db9fd199f880bad9a3ab3adb2906feed3ec77b0.tar.bz2
rockbox-3db9fd199f880bad9a3ab3adb2906feed3ec77b0.zip
Fix red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29468 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r--firmware/powermgmt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 5ca698f46e..615b96deae 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -62,6 +62,9 @@ int last_sent_battery_level = 100;
int battery_percent = -1;
void send_battery_level_event(void);
+static bool sleeptimer_active = false;
+static long sleeptimer_endtick;
+
#if CONFIG_CHARGING
/* State of the charger input as seen by the power thread */
enum charger_input_state_type charger_input_state;
@@ -812,9 +815,6 @@ void send_battery_level_event(void)
}
}
-static bool sleeptimer_active = false;
-static long sleeptimer_endtick;
-
void set_sleep_timer(int seconds)
{
if (seconds) {