aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2021-08-27 07:33:01 -0600
committerSelene ToyKeeper2021-08-27 07:33:01 -0600
commit21ce0589814e9b16583dfb27bc7fa028b8ab141e (patch)
tree80c7bc3e140acc33eeb6d6ec4c886cd86281ab7a
parentadded documentation for the global config menu and jump start level (diff)
downloadanduril-21ce0589814e9b16583dfb27bc7fa028b8ab141e.tar.gz
anduril-21ce0589814e9b16583dfb27bc7fa028b8ab141e.tar.bz2
anduril-21ce0589814e9b16583dfb27bc7fa028b8ab141e.zip
made it possible to use autolock in simple UI
(requires the user to set it up, so it won't happen to new users unless they do it on purpose)
-rw-r--r--spaghetti-monster/anduril/off-mode.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/spaghetti-monster/anduril/off-mode.c b/spaghetti-monster/anduril/off-mode.c
index e37bec3..6faad1c 100644
--- a/spaghetti-monster/anduril/off-mode.c
+++ b/spaghetti-monster/anduril/off-mode.c
@@ -78,17 +78,11 @@ uint8_t off_state(Event event, uint16_t arg) {
#endif
#ifdef USE_AUTOLOCK
- // lock the light after being off for N minutes
- #ifdef USE_SIMPLE_UI
- if (! simple_ui_active) { // no auto-lock in Simple UI
- #endif
+ // lock the light after being off for N minutes
uint16_t ticks = autolock_time * SLEEP_TICKS_PER_MINUTE;
if ((autolock_time > 0) && (arg > ticks)) {
set_state(lockout_state, 0);
}
- #ifdef USE_SIMPLE_UI
- }
- #endif
#endif // ifdef USE_AUTOLOCK
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.