aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2021-08-19 04:53:01 -0600
committerSelene ToyKeeper2021-08-19 04:53:01 -0600
commit122d126f8879d4c6423fbe0f97b28f0e14b8a87e (patch)
tree5bc96a71f65a21e64129a911f7071f00cfba7c7d
parentmerged digitalcircuit's anduril2_opt_disable_autocal_therm branch, (diff)
parentadd configurable #define DEFAULT_AUTOLOCK_TIME (diff)
downloadanduril-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 '')
-rw-r--r--spaghetti-monster/anduril/lockout-mode.h5
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