diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-02-18 10:07:27 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-02-18 10:07:27 +0000 |
commit | 3a37f46fc92fe7f9846a4077cc1a985c500d1174 (patch) | |
tree | 76541ae462f02ede816ab3f9b42f5207f068658c /firmware/drivers/button.c | |
parent | da88e84f482c8c96c0d64bf67969b6e9dd9a8379 (diff) |
Fix CONFIG_BACKLIGHT warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12393 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r-- | firmware/drivers/button.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 5a40bdfde0..a1fd58c447 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -43,7 +43,7 @@ static long last_read; /* Last button status, for debouncing/filtering */ #ifdef HAVE_LCD_BITMAP static bool flipped; /* buttons can be flipped to match the LCD flip */ #endif -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT static bool filter_first_keypress; #ifdef HAVE_REMOTE_LCD static bool remote_filter_first_keypress; @@ -71,7 +71,7 @@ static void button_tick(void) static int repeat_count = 0; static bool repeat = false; static bool post = false; -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT static bool skip_release = false; #ifdef HAVE_REMOTE_LCD static bool skip_remote_release = false; @@ -112,7 +112,7 @@ static void button_tick(void) diff = btn ^ lastbtn; if(diff && (btn & diff) == 0) { -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT #ifdef HAVE_REMOTE_LCD if(diff & BUTTON_REMOTE) if(!skip_remote_release) @@ -202,7 +202,7 @@ static void button_tick(void) if (queue_empty(&button_queue)) { queue_post(&button_queue, BUTTON_REPEAT | btn, 0); -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT #ifdef HAVE_REMOTE_LCD skip_remote_release = false; #endif @@ -213,7 +213,7 @@ static void button_tick(void) } else { -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT #ifdef HAVE_REMOTE_LCD if (btn & BUTTON_REMOTE) { if (!remote_filter_first_keypress || is_remote_backlight_on() @@ -288,7 +288,7 @@ void button_init(void) #ifdef HAVE_LCD_BITMAP flipped = false; #endif -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT filter_first_keypress = false; #ifdef HAVE_REMOTE_LCD remote_filter_first_keypress = false; @@ -360,7 +360,7 @@ void button_set_flip(bool flip) } #endif /* HAVE_LCD_BITMAP */ -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT void set_backlight_filter_keypress(bool value) { filter_first_keypress = value; |