diff options
| author | Selene ToyKeeper | 2024-08-04 06:03:38 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2024-08-04 06:03:38 -0600 |
| commit | 4f7f90df760f1bd215ce1b2ec671d62b332690c6 (patch) | |
| tree | 9c1c3c393da35e989c244630bbd15823f386a9ab /ui | |
| parent | include hardware-specific readme files in the release .zip (diff) | |
| download | anduril-4f7f90df760f1bd215ce1b2ec671d62b332690c6.tar.gz anduril-4f7f90df760f1bd215ce1b2ec671d62b332690c6.tar.bz2 anduril-4f7f90df760f1bd215ce1b2ec671d62b332690c6.zip | |
removed "Off -> 3H" strobe/mood mode access from Extended Simple UI
fixes #85
The Simple UI is meant to be relatively child-safe, and the strobe modes
are not. Users who want unsafe features enabled should use the full UI
instead... and the strobe + mood modes should also have some safety
features added, on drivers which have enough ROM to hold extra code.
Diffstat (limited to '')
| -rw-r--r-- | ui/anduril/off-mode.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/ui/anduril/off-mode.c b/ui/anduril/off-mode.c index 36d771c..f699c89 100644 --- a/ui/anduril/off-mode.c +++ b/ui/anduril/off-mode.c @@ -264,19 +264,6 @@ uint8_t off_state(Event event, uint16_t arg) { #endif // ifndef USE_EXTENDED_SIMPLE_UI #endif // ifdef USE_SIMPLE_UI - // click, click, long-click: strobe mode - #ifdef USE_STROBE_STATE - else if (event == EV_click3_hold) { - set_state(strobe_state, 0); - return EVENT_HANDLED; - } - #elif defined(USE_BORING_STROBE_STATE) - else if (event == EV_click3_hold) { - set_state(boring_strobe_state, 0); - return EVENT_HANDLED; - } - #endif - #ifdef USE_INDICATOR_LED // 7 clicks: change indicator LED mode else if (event == EV_7clicks) { @@ -334,6 +321,19 @@ uint8_t off_state(Event event, uint16_t arg) { } #endif // ifdef USE_EXTENDED_SIMPLE_UI + // click, click, long-click: strobe mode + #ifdef USE_STROBE_STATE + else if (event == EV_click3_hold) { + set_state(strobe_state, 0); + return EVENT_HANDLED; + } + #elif defined(USE_BORING_STROBE_STATE) + else if (event == EV_click3_hold) { + set_state(boring_strobe_state, 0); + return EVENT_HANDLED; + } + #endif + // 10 clicks: enable simple UI else if (event == EV_10clicks) { blink_once(); |
