diff options
Diffstat (limited to 'firmware/drivers/led.c')
-rw-r--r-- | firmware/drivers/led.c | 18 |
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 | |||
27 | static bool xor; | 25 | static bool xor; |
28 | static bool current; | 26 | static bool current; |
29 | 27 | ||
28 | #ifdef HAVE_LED | ||
29 | |||
30 | void led(bool on) | 30 | void 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 | |||
58 | void led(bool on) | ||
59 | { | ||
60 | (void)on; | ||
61 | } | ||
62 | |||
63 | void invert_led(bool on) | ||
64 | { | ||
65 | (void)on; | ||
66 | } | ||
67 | |||
68 | #endif // #ifdef HAVE_LED | ||