aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster
diff options
context:
space:
mode:
authorSelene ToyKeeper2021-04-13 02:44:56 -0600
committerSelene ToyKeeper2021-04-13 02:44:56 -0600
commit16df5326767123a70fdd77892fbfc603f8180523 (patch)
treebbc9d3df42e9d8b366fefea45ad15700c001153e /spaghetti-monster
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
Diffstat (limited to 'spaghetti-monster')
-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;
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.