aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster
diff options
context:
space:
mode:
authorSelene ToyKeeper2020-07-31 23:08:07 -0600
committerSelene ToyKeeper2020-07-31 23:08:07 -0600
commitd40b8e9c5b6acd63c53a42cb8e7bf7d9ea86e290 (patch)
tree00b48b99ba7de8bfbbdc57bfdad9742805b88b72 /spaghetti-monster
parentmade Emisar D18 build fit in ROM again (it was 6 bytes over; now it's 8 bytes... (diff)
downloadanduril-d40b8e9c5b6acd63c53a42cb8e7bf7d9ea86e290.tar.gz
anduril-d40b8e9c5b6acd63c53a42cb8e7bf7d9ea86e290.tar.bz2
anduril-d40b8e9c5b6acd63c53a42cb8e7bf7d9ea86e290.zip
Block the sunset timer in Simple UI.
Diffstat (limited to 'spaghetti-monster')
-rw-r--r--spaghetti-monster/anduril/sunset-timer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/spaghetti-monster/anduril/sunset-timer.c b/spaghetti-monster/anduril/sunset-timer.c
index 55da935..b083515 100644
--- a/spaghetti-monster/anduril/sunset-timer.c
+++ b/spaghetti-monster/anduril/sunset-timer.c
@@ -24,6 +24,11 @@
uint8_t sunset_timer_state(Event event, uint16_t arg) {
+ #ifdef USE_SIMPLE_UI
+ // No timer functions in Simple UI
+ if (simple_ui_active) return EVENT_NOT_HANDLED;
+ #endif
+
// reset on start
if (event == EV_enter_state) {
sunset_timer = 0;
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.