diff options
| author | Selene ToyKeeper | 2021-08-19 04:53:01 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2021-08-19 04:53:01 -0600 |
| commit | 122d126f8879d4c6423fbe0f97b28f0e14b8a87e (patch) | |
| tree | 5bc96a71f65a21e64129a911f7071f00cfba7c7d /spaghetti-monster | |
| parent | merged digitalcircuit's anduril2_opt_disable_autocal_therm branch, (diff) | |
| parent | add configurable #define DEFAULT_AUTOLOCK_TIME (diff) | |
| download | anduril-122d126f8879d4c6423fbe0f97b28f0e14b8a87e.tar.gz anduril-122d126f8879d4c6423fbe0f97b28f0e14b8a87e.tar.bz2 anduril-122d126f8879d4c6423fbe0f97b28f0e14b8a87e.zip | |
merged digitalcircuit's branch to make autolock timer configurable at build time
Diffstat (limited to 'spaghetti-monster')
| -rw-r--r-- | spaghetti-monster/anduril/lockout-mode.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spaghetti-monster/anduril/lockout-mode.h b/spaghetti-monster/anduril/lockout-mode.h index 021d34a..1c9c081 100644 --- a/spaghetti-monster/anduril/lockout-mode.h +++ b/spaghetti-monster/anduril/lockout-mode.h @@ -24,7 +24,10 @@ uint8_t lockout_state(Event event, uint16_t arg); #ifdef USE_AUTOLOCK -uint8_t autolock_time = 0; +#ifndef DEFAULT_AUTOLOCK_TIME +#define DEFAULT_AUTOLOCK_TIME 0 // autolock time in minutes, 0 = disabled +#endif +uint8_t autolock_time = DEFAULT_AUTOLOCK_TIME; uint8_t autolock_config_state(Event event, uint16_t arg); #endif |
