diff options
Diffstat (limited to '')
| -rw-r--r-- | spaghetti-monster/anduril/aux-leds.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/spaghetti-monster/anduril/aux-leds.c b/spaghetti-monster/anduril/aux-leds.c index 73d163e..3195fdc 100644 --- a/spaghetti-monster/anduril/aux-leds.c +++ b/spaghetti-monster/anduril/aux-leds.c @@ -29,15 +29,9 @@ void indicator_blink(uint8_t arg) { // turn off aux LEDs when battery is empty if (voltage < VOLTAGE_LOW) { indicator_led(0); return; } - #ifdef USE_FANCIER_BLINKING_INDICATOR - - // fancy blink, set off/low/high levels here: - static const uint8_t seq[] = {0, 1, 2, 1, 0, 0, 0, 0, - 0, 0, 1, 0, 0, 0, 0, 0}; - indicator_led(seq[arg & 15]); - - #else // basic blink, 1/8th duty cycle + #ifdef USE_OLD_BLINKING_INDICATOR + // basic blink, 1/8th duty cycle if (! (arg & 7)) { indicator_led(2); } @@ -45,7 +39,14 @@ void indicator_blink(uint8_t arg) { indicator_led(0); } - #endif + #else + + // fancy blink, set off/low/high levels here: + static const uint8_t seq[] = {0, 1, 2, 1, 0, 0, 0, 0, + 0, 0, 1, 0, 0, 0, 0, 0}; + indicator_led(seq[arg & 15]); + + #endif // ifdef USE_OLD_BLINKING_INDICATOR } #endif |
