diff options
| author | Selene ToyKeeper | 2020-08-18 07:19:32 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2020-08-18 07:19:32 -0600 |
| commit | 759183bac146806295d8aaf6de38a7d321230f1e (patch) | |
| tree | c2f3a9801ffab3ed658c93cd64844fc91a5b0cea /spaghetti-monster/fsm-standby.h | |
| parent | shuffled functions around to make 4C lockout and 3C battcheck again (diff) | |
| download | anduril-759183bac146806295d8aaf6de38a7d321230f1e.tar.gz anduril-759183bac146806295d8aaf6de38a7d321230f1e.tar.bz2 anduril-759183bac146806295d8aaf6de38a7d321230f1e.zip | |
fixed timing of auto-lock function, added SLEEP_TICKS_PER_MINUTE constants
Diffstat (limited to 'spaghetti-monster/fsm-standby.h')
| -rw-r--r-- | spaghetti-monster/fsm-standby.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-standby.h b/spaghetti-monster/fsm-standby.h index 9f411be..b97ef7c 100644 --- a/spaghetti-monster/fsm-standby.h +++ b/spaghetti-monster/fsm-standby.h @@ -45,18 +45,31 @@ volatile uint8_t go_to_standby = 0; * how it is) */ #endif + #if (STANDBY_TICK_SPEED == 1) #define SLEEP_TICKS_PER_SECOND 31 +#define SLEEP_TICKS_PER_MINUTE 1875 + #elif (STANDBY_TICK_SPEED == 2) #define SLEEP_TICKS_PER_SECOND 16 +#define SLEEP_TICKS_PER_MINUTE 938 + #elif (STANDBY_TICK_SPEED == 3) #define SLEEP_TICKS_PER_SECOND 8 +#define SLEEP_TICKS_PER_MINUTE 469 + #elif (STANDBY_TICK_SPEED == 4) #define SLEEP_TICKS_PER_SECOND 4 +#define SLEEP_TICKS_PER_MINUTE 234 + #elif (STANDBY_TICK_SPEED == 5) #define SLEEP_TICKS_PER_SECOND 2 +#define SLEEP_TICKS_PER_MINUTE 117 + #elif (STANDBY_TICK_SPEED == 6) #define SLEEP_TICKS_PER_SECOND 1 +#define SLEEP_TICKS_PER_MINUTE 59 + #endif #endif |
