summaryrefslogtreecommitdiff
path: root/firmware/drivers/led.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-02-18 05:07:19 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-02-18 05:07:19 +0000
commitbd47d48c21ddcdd56b3654db78613d93739b8ce7 (patch)
tree78ddd13c384995b4220adc2c85eff233956420d2 /firmware/drivers/led.c
parentac61951452e001da48430d8487521ad32b7a123c (diff)
downloadrockbox-bd47d48c21ddcdd56b3654db78613d93739b8ce7.zip
rockbox-bd47d48c21ddcdd56b3654db78613d93739b8ce7.tar.gz
rockbox-bd47d48c21ddcdd56b3654db78613d93739b8ce7.tar.bz2
rockbox-bd47d48c21ddcdd56b3654db78613d93739b8ce7.tar.xz
Do the CONFIG_LED define
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12383 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/led.c')
-rw-r--r--firmware/drivers/led.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/drivers/led.c b/firmware/drivers/led.c
index 2799b7c..36748a1 100644
--- a/firmware/drivers/led.c
+++ b/firmware/drivers/led.c
@@ -23,7 +23,7 @@
#include "system.h"
#include "kernel.h"
-#if (defined(CONFIG_LED) && (CONFIG_LED == LED_REAL))
+#if (CONFIG_LED == LED_REAL)
void led(bool on)
{
@@ -37,8 +37,7 @@ void led(bool on)
}
}
-#elif (defined(CONFIG_LED) && (CONFIG_LED == LED_VIRTUAL)) \
- || defined(HAVE_REMOTE_LCD)
+#elif (CONFIG_LED == LED_VIRTUAL) || defined(HAVE_REMOTE_LCD)
static bool current;
static long last_on; /* timestamp of switching off */