From cf2b821a7af4bd01b5429e8e28e62a7956e39f9e Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Fri, 15 Apr 2005 13:51:19 +0000 Subject: [PATCH] IRiver: added remote backlight handling into backlight thread git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6299 a1c6a512-1295-4272-9138-f99709370657 --- firmware/backlight.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/firmware/backlight.c b/firmware/backlight.c index 6a51d1ee57..a13277705e 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c @@ -28,6 +28,10 @@ #include "power.h" #include "system.h" +#ifdef HAVE_REMOTE_LCD +#include "lcd-remote.h" +#endif + #ifdef CONFIG_BACKLIGHT const char backlight_timeout_value[19] = @@ -63,6 +67,10 @@ static void __backlight_off(void) #elif CONFIG_BACKLIGHT == BL_GMINI P1 &= ~0x10; #endif + +#ifdef HAVE_REMOTE_LCD + lcd_remote_backlight_off(); +#endif } static void __backlight_on(void) @@ -80,6 +88,10 @@ static void __backlight_on(void) #elif CONFIG_BACKLIGHT == BL_GMINI P1 |= 0x10; #endif + +#ifdef HAVE_REMOTE_LCD + lcd_remote_backlight_on(); +#endif } void backlight_thread(void)