From 976c5724bf0a3ddbe6d4b385841a0a5bf38f4b25 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Fri, 29 Sep 2017 17:31:10 -0600 Subject: Added option to start at memorized level, for momentary use on dual-switch lights. Renamed WL versions of eeprom functions, for naming consistency. --- spaghetti-monster/fsm-eeprom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spaghetti-monster/fsm-eeprom.c') diff --git a/spaghetti-monster/fsm-eeprom.c b/spaghetti-monster/fsm-eeprom.c index e464785..45cd3fa 100644 --- a/spaghetti-monster/fsm-eeprom.c +++ b/spaghetti-monster/fsm-eeprom.c @@ -55,7 +55,7 @@ void save_eeprom() { uint8_t eeprom_wl[EEPROM_WL_BYTES]; EEP_OFFSET_T eep_wl_prev_offset; -uint8_t load_wl_eeprom() { +uint8_t load_eeprom_wl() { cli(); // check if eeprom has been initialized; abort if it hasn't uint8_t found = 0; @@ -80,7 +80,7 @@ uint8_t load_wl_eeprom() { return found; } -void save_wl_eeprom() { +void save_eeprom_wl() { cli(); // erase old state EEP_OFFSET_T offset = eep_wl_prev_offset; -- cgit v1.2.3