aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/anduril/load-save-config.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--spaghetti-monster/anduril/load-save-config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/spaghetti-monster/anduril/load-save-config.c b/spaghetti-monster/anduril/load-save-config.c
index 8cfb69d..7268dc9 100644
--- a/spaghetti-monster/anduril/load-save-config.c
+++ b/spaghetti-monster/anduril/load-save-config.c
@@ -67,6 +67,9 @@ void load_config() {
rgb_led_off_mode = eeprom[rgb_led_off_mode_e];
rgb_led_lockout_mode = eeprom[rgb_led_lockout_mode_e];
#endif
+ #ifdef USE_AUTOLOCK
+ autolock_time = eeprom[autolock_time_e];
+ #endif
}
#ifdef START_AT_MEMORIZED_LEVEL
if (load_eeprom_wl()) {
@@ -118,6 +121,9 @@ void save_config() {
eeprom[rgb_led_off_mode_e] = rgb_led_off_mode;
eeprom[rgb_led_lockout_mode_e] = rgb_led_lockout_mode;
#endif
+ #ifdef USE_AUTOLOCK
+ eeprom[autolock_time_e] = autolock_time;
+ #endif
save_eeprom();
}