From a66c9fbbdd898138beec63fc70c9133675b15dfe Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sun, 17 Jun 2018 19:43:35 -0600 Subject: Started adding support for aux LEDs which go out the front instead of lighting up the button. (so they should only be on when the main LEDs are off) --- spaghetti-monster/fsm-ramping.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spaghetti-monster/fsm-ramping.c') diff --git a/spaghetti-monster/fsm-ramping.c b/spaghetti-monster/fsm-ramping.c index ec132ae..01df46a 100644 --- a/spaghetti-monster/fsm-ramping.c +++ b/spaghetti-monster/fsm-ramping.c @@ -29,11 +29,15 @@ void set_level(uint8_t level) { gradual_target = level; #endif #ifdef USE_INDICATOR_LED + #ifdef USE_INDICATOR_LED_WHILE_RAMPING if (! go_to_standby) indicator_led((level > 0) + (level > MAX_1x7135)); //if (level > MAX_1x7135) indicator_led(2); //else if (level > 0) indicator_led(1); //else if (! go_to_standby) indicator_led(0); + #else + indicator_led(0); + #endif #endif //TCCR0A = PHASE; if (level == 0) { -- cgit v1.2.3