diff options
| author | Selene ToyKeeper | 2018-06-17 19:43:35 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-06-17 19:43:35 -0600 |
| commit | a66c9fbbdd898138beec63fc70c9133675b15dfe (patch) | |
| tree | 015166f858cd4853f9f522630bbaf9e818c1ac5e /spaghetti-monster/fsm-ramping.c | |
| parent | Changed halfsleep mode to TICK_DURING_STANDBY. Added blinking indicator LED ... (diff) | |
| download | anduril-a66c9fbbdd898138beec63fc70c9133675b15dfe.tar.gz anduril-a66c9fbbdd898138beec63fc70c9133675b15dfe.tar.bz2 anduril-a66c9fbbdd898138beec63fc70c9133675b15dfe.zip | |
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)
Diffstat (limited to 'spaghetti-monster/fsm-ramping.c')
| -rw-r--r-- | spaghetti-monster/fsm-ramping.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |
