aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2021-04-13 02:44:56 -0600
committerSelene ToyKeeper2021-04-13 02:44:56 -0600
commit16df5326767123a70fdd77892fbfc603f8180523 (patch)
treebbc9d3df42e9d8b366fefea45ad15700c001153e
parentfixed wrong word in manual (turbo is in full UI only) (diff)
downloadanduril-16df5326767123a70fdd77892fbfc603f8180523.tar.gz
anduril-16df5326767123a70fdd77892fbfc603f8180523.tar.bz2
anduril-16df5326767123a70fdd77892fbfc603f8180523.zip
fixed missing ifdef for simple UI
-rw-r--r--spaghetti-monster/anduril/off-mode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/spaghetti-monster/anduril/off-mode.c b/spaghetti-monster/anduril/off-mode.c
index 34d9e6d..e37f08d 100644
--- a/spaghetti-monster/anduril/off-mode.c
+++ b/spaghetti-monster/anduril/off-mode.c
@@ -157,9 +157,12 @@ uint8_t off_state(Event event, uint16_t arg) {
}
// click, hold: momentary at ceiling or turbo
else if (event == EV_click2_hold) {
+ #ifdef USE_SIMPLE_UI
if (simple_ui_active) {
set_level(nearest_level(MAX_LEVEL));
- } else {
+ } else
+ #endif
+ {
set_level(MAX_LEVEL);
}
return MISCHIEF_MANAGED;