From cc16e398a990ab8a086095ef42a72c268b5fa474 Mon Sep 17 00:00:00 2001 From: SiteRelEnby Date: Wed, 14 Feb 2024 14:33:46 -0600 Subject: Bugfix: Prevent switching channel modes when in tactical mode Fixes issue https://github.com/ToyKeeper/anduril/issues/40 --- ui/anduril/tactical-mode.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui') 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(); -- cgit v1.2.3