summaryrefslogtreecommitdiff
path: root/firmware/drivers/led.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/led.c')
-rw-r--r--firmware/drivers/led.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/drivers/led.c b/firmware/drivers/led.c
index f3b0693c6d..c67df9a83f 100644
--- a/firmware/drivers/led.c
+++ b/firmware/drivers/led.c
@@ -22,6 +22,8 @@
#include "led.h"
#include "system.h"
+#ifndef HAVE_NO_LED
+
static bool xor;
static bool current;
@@ -51,3 +53,4 @@ void invert_led(bool on)
led(current);
}
+#endif // #ifndef HAVE_NO_LED