diff options
| author | Selene ToyKeeper | 2018-06-26 19:56:01 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-06-26 19:56:01 -0600 |
| commit | 687cf0f31db72f3f614af262dc33c150af11dd98 (patch) | |
| tree | 15e0d9ec65ff42600bb88bb9fb6d63c13eadce86 | |
| parent | Mostly got Emisar UI working... I think. Not yet tested. (diff) | |
| download | anduril-687cf0f31db72f3f614af262dc33c150af11dd98.tar.gz anduril-687cf0f31db72f3f614af262dc33c150af11dd98.tar.bz2 anduril-687cf0f31db72f3f614af262dc33c150af11dd98.zip | |
Forgot to change lockout mode exit mapping and remove off_state aux LED UI in lockout mode.
| -rw-r--r-- | spaghetti-monster/anduril/rampingiosv3.c | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/spaghetti-monster/anduril/rampingiosv3.c b/spaghetti-monster/anduril/rampingiosv3.c index 12550cc..ab148ed 100644 --- a/spaghetti-monster/anduril/rampingiosv3.c +++ b/spaghetti-monster/anduril/rampingiosv3.c @@ -710,39 +710,9 @@ uint8_t lockout_state(EventPtr event, uint16_t arg) { save_config(); return MISCHIEF_MANAGED; } - // click, click, hold: rotate through indicator LED modes (off mode) - else if (event == EV_click3_hold) { - #ifndef USE_INDICATOR_LED_WHILE_RAMPING - // if main LED obscures aux LEDs, turn it off - // FIXME: might not work, since it was turned on just a few clock - // cycles ago at beginning of this function - set_level(0); - #endif - #ifdef TICK_DURING_STANDBY - uint8_t mode = (arg >> 5) & 3; - #else - uint8_t mode = (arg >> 5) % 3; - #endif - indicator_led_mode = (indicator_led_mode & 0b11111100) | mode; - #ifdef TICK_DURING_STANDBY - if (mode == 3) - indicator_led(mode & (arg&3)); - else - indicator_led(mode); - #else - indicator_led(mode); - #endif - //save_config(); - return MISCHIEF_MANAGED; - } - // click, click, hold, release: save indicator LED mode (off mode) - else if (event == EV_click3_hold_release) { - save_config(); - return MISCHIEF_MANAGED; - } #endif - // 4 clicks: exit - else if (event == EV_4clicks) { + // 6 clicks: exit + else if (event == EV_6clicks) { blink_confirm(1); set_state(off_state, 0); return MISCHIEF_MANAGED; |
