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.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/firmware/drivers/led.c b/firmware/drivers/led.c
index c67df9a83f..182f30f4e0 100644
--- a/firmware/drivers/led.c
+++ b/firmware/drivers/led.c
@@ -22,11 +22,11 @@
22#include "led.h" 22#include "led.h"
23#include "system.h" 23#include "system.h"
24 24
25#ifndef HAVE_NO_LED
26
27static bool xor; 25static bool xor;
28static bool current; 26static bool current;
29 27
28#ifdef HAVE_LED
29
30void led(bool on) 30void led(bool on)
31{ 31{
32 current = on; 32 current = on;
@@ -53,4 +53,16 @@ void invert_led(bool on)
53 led(current); 53 led(current);
54} 54}
55 55
56#endif // #ifndef HAVE_NO_LED 56#else /* no LED, just dummies */
57
58void led(bool on)
59{
60 (void)on;
61}
62
63void invert_led(bool on)
64{
65 (void)on;
66}
67
68#endif // #ifdef HAVE_LED