diff options
Diffstat (limited to 'firmware/drivers')
| -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 c67df9a..182f30f 100644 --- a/firmware/drivers/led.c +++ b/firmware/drivers/led.c @@ -22,11 +22,11 @@ #include "led.h" #include "system.h" -#ifndef HAVE_NO_LED - static bool xor; static bool current; +#ifdef HAVE_LED + void led(bool on) { current = on; @@ -53,4 +53,16 @@ void invert_led(bool on) led(current); } -#endif // #ifndef HAVE_NO_LED +#else /* no LED, just dummies */ + +void led(bool on) +{ + (void)on; +} + +void invert_led(bool on) +{ + (void)on; +} + +#endif // #ifdef HAVE_LED |