summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/led.c
diff options
context:
space:
mode:
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 2799b7cd8c..36748a1b18 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 */