From 1bf813d682f23955f0d8dfdd38428afb210f1ddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Tue, 25 Sep 2007 20:24:38 +0000 Subject: [PATCH] Enabled button light for Sansa C200 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14856 a1c6a512-1295-4272-9138-f99709370657 --- apps/lang/english.lang | 3 +++ firmware/drivers/button.c | 5 +++++ firmware/export/config-c200.h | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/lang/english.lang b/apps/lang/english.lang index 643d412c2c..189da0fa2d 100644 --- a/apps/lang/english.lang +++ b/apps/lang/english.lang @@ -3888,16 +3888,19 @@ *: none e200: "Wheel Light Timeout" + c200: "Button Light Timeout" gigabeatf: "Button Light Timeout" *: none e200: "Wheel Light Timeout" + c200: "Button Light Timeout" gigabeatf: "Button Light Timeout" *: none e200: "Wheel Light Timeout" + c200: "Button Light Timeout" gigabeatf: "Button Light Timeout" diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 7b5fd26f3b..862b02dcb8 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -256,7 +256,12 @@ static void button_tick(void) remote_backlight_on(); else #endif + { backlight_on(); +#ifdef HAVE_BUTTON_LIGHT + button_backlight_on(); +#endif + } reset_poweroff_timer(); } diff --git a/firmware/export/config-c200.h b/firmware/export/config-c200.h index 745ac546fd..4f95300425 100644 --- a/firmware/export/config-c200.h +++ b/firmware/export/config-c200.h @@ -27,7 +27,7 @@ #define HAVE_LCD_COLOR /* define this if you have a light associated with the buttons */ -/* TODO: #define HAVE_BUTTON_LIGHT */ +#define HAVE_BUTTON_LIGHT /* define this if you have access to the quickscreen */ #define HAVE_QUICKSCREEN