diff options
| author | Shane Synan | 2021-07-12 16:19:26 -0400 |
|---|---|---|
| committer | Shane Synan | 2021-07-12 16:19:26 -0400 |
| commit | 4436bf39ed713b7f714b5beb8170e1a4259a835e (patch) | |
| tree | ff75907596b57d7fecaf80b7ffdba4e9a727afc8 /spaghetti-monster | |
| parent | rewrote hybrid memory (manual memory timer) to eliminate corner cases (diff) | |
| download | anduril-4436bf39ed713b7f714b5beb8170e1a4259a835e.tar.gz anduril-4436bf39ed713b7f714b5beb8170e1a4259a835e.tar.bz2 anduril-4436bf39ed713b7f714b5beb8170e1a4259a835e.zip | |
add configurable #define DEFAULT_AUTOLOCK_TIME
Added a new #define DEFAULT_AUTOLOCK_TIME to simplify compiling
firmware with the autolock timer enabled by default. If this is not
specified, the autolock timer remains disabled by default.
This removes the need to modify lockout-mode.h directly.
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 |
