From f7661ad414c5885bf274e09e8c318e3c6a4b70ca Mon Sep 17 00:00:00 2001 From: Tom Schumm Date: Sat, 31 Aug 2024 22:15:25 -0700 Subject: [PATCH] Fix strobe mode (#94). Looks like this inadvertantly got placed inside an #ifdef USE_SIMPLE_UI block when fixing #85. Moving it below that block fixes it. --- ui/anduril/off-mode.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ui/anduril/off-mode.c b/ui/anduril/off-mode.c index 907efc8a..4924066c 100644 --- a/ui/anduril/off-mode.c +++ b/ui/anduril/off-mode.c @@ -367,6 +367,15 @@ uint8_t off_state(Event event, uint16_t arg) { } #endif // ifdef USE_EXTENDED_SIMPLE_UI + // 10 clicks: enable simple UI + else if (event == EV_10clicks) { + blink_once(); + cfg.simple_ui_active = 1; + save_config(); + return EVENT_HANDLED; + } + #endif // ifdef USE_SIMPLE_UI + // click, click, long-click: strobe mode #ifdef USE_STROBE_STATE else if (event == EV_click3_hold) { @@ -380,15 +389,6 @@ uint8_t off_state(Event event, uint16_t arg) { } #endif - // 10 clicks: enable simple UI - else if (event == EV_10clicks) { - blink_once(); - cfg.simple_ui_active = 1; - save_config(); - return EVENT_HANDLED; - } - #endif // ifdef USE_SIMPLE_UI - #ifdef USE_MOMENTARY_MODE // 5 clicks: momentary mode else if (event == EV_5clicks) {