diff options
| author | Selene ToyKeeper | 2018-06-17 18:18:38 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-06-17 18:18:38 -0600 |
| commit | cfedb2eaf4a0d62969ff05307ac40d4f1cdab2d9 (patch) | |
| tree | 0d4ecd59e65b3152c44e50c9a93e679a260fac5c /spaghetti-monster/fsm-standby.h | |
| parent | Added dual-switch support (tail clicky + e-switch) to muggle mode. (diff) | |
| download | anduril-cfedb2eaf4a0d62969ff05307ac40d4f1cdab2d9.tar.gz anduril-cfedb2eaf4a0d62969ff05307ac40d4f1cdab2d9.tar.bz2 anduril-cfedb2eaf4a0d62969ff05307ac40d4f1cdab2d9.zip | |
Implemented halfsleep mode.
Will probably change it quite a bit though, so I'm checking in changes first.
Needs to be "tick during standby" instead of "half sleep".
Diffstat (limited to 'spaghetti-monster/fsm-standby.h')
| -rw-r--r-- | spaghetti-monster/fsm-standby.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spaghetti-monster/fsm-standby.h b/spaghetti-monster/fsm-standby.h index 0b410fa..bd362a3 100644 --- a/spaghetti-monster/fsm-standby.h +++ b/spaghetti-monster/fsm-standby.h @@ -25,6 +25,11 @@ // set this to nonzero to enter standby mode next time the system is idle volatile uint8_t go_to_standby = 0; +#ifdef USE_HALFSLEEP_MODE +// half-sleep "twilight" mode with WDT on but running slowly +volatile uint8_t halfsleep_mode = 0; +#endif + #define standby_mode sleep_until_eswitch_pressed void sleep_until_eswitch_pressed(); @@ -34,6 +39,4 @@ void sleep_until_eswitch_pressed(); void idle_mode(); #endif -// TODO: half-sleep "twilight" mode with WDT on but running slowly - #endif |
