aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorChristian Schubert2026-04-02 21:51:38 +0200
committerChristian Schubert2026-04-02 21:51:38 +0200
commitc42de8566390db18ce2f140cbf9427a412eddc69 (patch)
tree41426e61c964473b8e95f0e3304ae4b218ad1636 /ui
parentsimple UI (diff)
downloadanduril-c42de8566390db18ce2f140cbf9427a412eddc69.tar.gz
anduril-c42de8566390db18ce2f140cbf9427a412eddc69.tar.bz2
anduril-c42de8566390db18ce2f140cbf9427a412eddc69.zip
idle_mode()
Diffstat (limited to '')
-rw-r--r--ui/simple/simple.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ui/simple/simple.c b/ui/simple/simple.c
index 885f8a8..31d1a6c 100644
--- a/ui/simple/simple.c
+++ b/ui/simple/simple.c
@@ -27,6 +27,7 @@
#include incfile(HWDEF_H)
#endif
+#define USE_IDLE_MODE
#include "fsm/spaghetti-monster.h"
#ifdef HWDEF_C
@@ -207,4 +208,10 @@ void setup(void) {
push_state(off_state, 0);
}
-void loop(void) { }
+void loop(void) {
+ StatePtr state = current_state;
+
+ if (state == on_state || state == aux_state) {
+ idle_mode();
+ }
+}
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.