From e303c805330da2b753503dfc8ac0e2c64f780b13 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Thu, 10 Mar 2011 16:13:11 +0000 Subject: [PATCH] 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 --- firmware/powermgmt.c | 2 ++ 1 file changed, 2 insertions(+) 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 */ } /*