From b016185c996da110de9bdd5a709a24764b05a11b Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Thu, 19 Jan 2006 20:12:49 +0000 Subject: Fix red builds git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8392 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/button.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/drivers') diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 0c17fce4c6..143d4570e4 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -284,7 +284,7 @@ static void button_tick(void) #else if (btn == POWEROFF_BUTTON && #endif -#ifndef HAVE_POWEROFF_WHILE_CHARGING +#if defined(HAVE_CHARGING) && !defined(HAVE_POWEROFF_WHILE_CHARGING) !charger_inserted() && #endif repeat_count > POWEROFF_COUNT) -- cgit v1.2.3