diff options
| author | Christian Schubert | 2026-04-02 21:51:38 +0200 |
|---|---|---|
| committer | Christian Schubert | 2026-04-02 21:51:38 +0200 |
| commit | c42de8566390db18ce2f140cbf9427a412eddc69 (patch) | |
| tree | 41426e61c964473b8e95f0e3304ae4b218ad1636 | |
| parent | simple UI (diff) | |
| download | anduril-c42de8566390db18ce2f140cbf9427a412eddc69.tar.gz anduril-c42de8566390db18ce2f140cbf9427a412eddc69.tar.bz2 anduril-c42de8566390db18ce2f140cbf9427a412eddc69.zip | |
idle_mode()
| -rw-r--r-- | ui/simple/simple.c | 9 |
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(); + } +} |
