diff options
Diffstat (limited to 'spaghetti-monster/anduril/load-save-config.c')
| -rw-r--r-- | spaghetti-monster/anduril/load-save-config.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spaghetti-monster/anduril/load-save-config.c b/spaghetti-monster/anduril/load-save-config.c index 4987def..4101e7a 100644 --- a/spaghetti-monster/anduril/load-save-config.c +++ b/spaghetti-monster/anduril/load-save-config.c @@ -95,6 +95,11 @@ void load_config() { #ifdef USE_AUTOLOCK autolock_time = eeprom[autolock_time_e]; #endif + #ifdef USE_TACTICAL_MODE + tactical_levels[0] = eeprom[tactical_lvl_1_e]; + tactical_levels[1] = eeprom[tactical_lvl_2_e]; + tactical_levels[2] = eeprom[tactical_lvl_3_e]; + #endif } #ifdef START_AT_MEMORIZED_LEVEL if (load_eeprom_wl()) { @@ -174,6 +179,11 @@ void save_config() { #ifdef USE_AUTOLOCK eeprom[autolock_time_e] = autolock_time; #endif + #ifdef USE_TACTICAL_MODE + eeprom[tactical_lvl_1_e] = tactical_levels[0]; + eeprom[tactical_lvl_2_e] = tactical_levels[1]; + eeprom[tactical_lvl_3_e] = tactical_levels[2]; + #endif save_eeprom(); } |
