aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-06-26 19:56:01 -0600
committerSelene ToyKeeper2018-06-26 19:56:01 -0600
commit687cf0f31db72f3f614af262dc33c150af11dd98 (patch)
tree15e0d9ec65ff42600bb88bb9fb6d63c13eadce86
parentMostly got Emisar UI working... I think. Not yet tested. (diff)
downloadanduril-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.c34
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;
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.