From a0e30ffa692740a8f3a1df66904597fa7c8d6431 Mon Sep 17 00:00:00 2001 From: Johno Crawford Date: Mon, 6 Nov 2023 00:21:34 +0100 Subject: Fix compile error when Simple UI is undefined. --- ui/anduril/channel-modes.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/anduril/channel-modes.c b/ui/anduril/channel-modes.c index ccac58c..8bd746d 100644 --- a/ui/anduril/channel-modes.c +++ b/ui/anduril/channel-modes.c @@ -126,11 +126,14 @@ uint8_t channel_mode_state(Event event, uint16_t arg) { if (cfg.simple_ui_active) { return EVENT_NOT_HANDLED; } + #if NUM_CHANNEL_MODES > 1 + else + #endif #endif #if NUM_CHANNEL_MODES > 1 - // channel toggle menu on ... 9H? - else if (event == EV_click9_hold) { + // channel toggle menu on ... 9H? (only if not in SIMPLE UI or if SIMPLE UI is inactive) + if (event == EV_click9_hold) { push_state(channel_mode_config_state, 0); return EVENT_HANDLED; } -- cgit v1.2.3