diff options
| author | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-09-10 12:55:55 +0000 |
|---|---|---|
| committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-09-10 12:55:55 +0000 |
| commit | c45d54b4672482cf251bacbfcac7ef404b160d67 (patch) | |
| tree | 7665bf9642f564175f6c7ec6ad4a0bf3eccd46d0 /firmware/drivers/led.c | |
| parent | 9bb648800b38e6c5b2db27ab1cff1917e34d6e33 (diff) | |
| download | rockbox-c45d54b4672482cf251bacbfcac7ef404b160d67.zip rockbox-c45d54b4672482cf251bacbfcac7ef404b160d67.tar.gz rockbox-c45d54b4672482cf251bacbfcac7ef404b160d67.tar.bz2 rockbox-c45d54b4672482cf251bacbfcac7ef404b160d67.tar.xz | |
no double negation, define present features, not absent
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5058 a1c6a512-1295-4272-9138-f99709370657
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 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 |