diff options
| author | Selene ToyKeeper | 2024-03-28 07:54:21 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2024-03-28 07:54:21 -0600 |
| commit | 85990374571d8d1ed679dfe8a2508339576eabbb (patch) | |
| tree | 54561262fc2b9a7ab2565f651dadf69d1136f69a /ui | |
| parent | increased voltage precision from 0.025V to 0.02V (diff) | |
| parent | Bugfix: Prevent switching channel modes when in tactical mode (diff) | |
| download | anduril-85990374571d8d1ed679dfe8a2508339576eabbb.tar.gz anduril-85990374571d8d1ed679dfe8a2508339576eabbb.tar.bz2 anduril-85990374571d8d1ed679dfe8a2508339576eabbb.zip | |
Merge branch 'tactical-mode-3c-fix' of github.com:SiteRelEnby/anduril into pr49-SiteRelEnby-tactical-mode-3c-fix
* 'tactical-mode-3c-fix' of github.com:SiteRelEnby/anduril:
Bugfix: Prevent switching channel modes when in tactical mode
Diffstat (limited to 'ui')
| -rw-r--r-- | ui/anduril/tactical-mode.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/anduril/tactical-mode.c b/ui/anduril/tactical-mode.c index 5acd902..002f917 100644 --- a/ui/anduril/tactical-mode.c +++ b/ui/anduril/tactical-mode.c @@ -68,6 +68,11 @@ uint8_t tactical_state(Event event, uint16_t arg) { return lockout_state(event, arg); } + // handle 3C here to prevent changing channel modes unintentionally + if (event == EV_3clicks) { + return EVENT_HANDLED; + } + // 6 clicks: exit and turn off else if (event == EV_6clicks) { blink_once(); |
