diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-02-18 01:10:42 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-02-18 01:10:42 +0000 |
commit | c2f05592ee1ba8399b64b5f63669c0eaa8cb8e0e (patch) | |
tree | 839dc8e03702a3413ccc2860bd9d801e3fe902d9 /firmware/drivers | |
parent | eff0dc3e13063a8d63710dfb8e48abf960bc0a33 (diff) |
more CONFIG_LED fixes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12376 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/led.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/drivers/led.c b/firmware/drivers/led.c index a9be9399c8..2799b7cd8c 100644 --- a/firmware/drivers/led.c +++ b/firmware/drivers/led.c @@ -23,7 +23,7 @@ #include "system.h" #include "kernel.h" -#if CONFIG_LED == LED_REAL +#if (defined(CONFIG_LED) && (CONFIG_LED == LED_REAL)) void led(bool on) { @@ -37,7 +37,8 @@ void led(bool on) } } -#elif (CONFIG_LED == LED_VIRTUAL) || defined(HAVE_REMOTE_LCD) +#elif (defined(CONFIG_LED) && (CONFIG_LED == LED_VIRTUAL)) \ + || defined(HAVE_REMOTE_LCD) static bool current; static long last_on; /* timestamp of switching off */ |