diff options
| author | SiteRelEnby | 2024-02-14 14:33:46 -0600 |
|---|---|---|
| committer | SiteRelEnby | 2024-02-14 14:33:46 -0600 |
| commit | cc16e398a990ab8a086095ef42a72c268b5fa474 (patch) | |
| tree | ca54f15a9a11cbf1aaa58539b4f39a431b449c34 /ui | |
| parent | avr32dd20-devkit: use unimplemented "CH" pin as a boost bypass control (diff) | |
| download | anduril-cc16e398a990ab8a086095ef42a72c268b5fa474.tar.gz anduril-cc16e398a990ab8a086095ef42a72c268b5fa474.tar.bz2 anduril-cc16e398a990ab8a086095ef42a72c268b5fa474.zip | |
Bugfix: Prevent switching channel modes when in tactical mode
Fixes issue https://github.com/ToyKeeper/anduril/issues/40
Diffstat (limited to '')
| -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(); |
