summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2011-03-10 16:13:11 +0000
committerThomas Jarosch <tomj@simonv.com>2011-03-10 16:13:11 +0000
commite303c805330da2b753503dfc8ac0e2c64f780b13 (patch)
tree1244007d3942665184343bc7e893cf5f2f563d69 /firmware
parent98cf1a14b04590005ea6c2bb46e98c06fb47f375 (diff)
downloadrockbox-e303c805330da2b753503dfc8ac0e2c64f780b13.tar.gz
rockbox-e303c805330da2b753503dfc8ac0e2c64f780b13.zip
Don't compile handle_sleep_timer() code for the bootloader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29556 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/powermgmt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 46d9938f0b..8913c99aad 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -789,6 +789,7 @@ int get_sleep_timer(void)
static void handle_sleep_timer(void)
{
+#ifndef BOOTLOADER
if (!sleeptimer_active)
return;
@@ -809,6 +810,7 @@ static void handle_sleep_timer(void)
sys_poweroff();
}
}
+#endif /* BOOTLOADER */
}
/*