aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-ramping.c
diff options
context:
space:
mode:
Diffstat (limited to 'spaghetti-monster/fsm-ramping.c')
-rw-r--r--spaghetti-monster/fsm-ramping.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-ramping.c b/spaghetti-monster/fsm-ramping.c
index ec132ae..6cdf5e6 100644
--- a/spaghetti-monster/fsm-ramping.c
+++ b/spaghetti-monster/fsm-ramping.c
@@ -29,11 +29,16 @@ 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
+ if (! go_to_standby)
+ indicator_led(0);
+ #endif
#endif
//TCCR0A = PHASE;
if (level == 0) {