diff options
| author | Selene ToyKeeper | 2017-09-29 17:31:10 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2017-09-29 17:31:10 -0600 |
| commit | 976c5724bf0a3ddbe6d4b385841a0a5bf38f4b25 (patch) | |
| tree | d2883141aa81fbcd9c9b3d554034820d9e5c25d5 /spaghetti-monster/fsm-eeprom.c | |
| parent | Make sure hold-from-off ramps up, not down. (diff) | |
| download | anduril-976c5724bf0a3ddbe6d4b385841a0a5bf38f4b25.tar.gz anduril-976c5724bf0a3ddbe6d4b385841a0a5bf38f4b25.tar.bz2 anduril-976c5724bf0a3ddbe6d4b385841a0a5bf38f4b25.zip | |
Added option to start at memorized level, for momentary use on dual-switch lights.
Renamed WL versions of eeprom functions, for naming consistency.
Diffstat (limited to 'spaghetti-monster/fsm-eeprom.c')
| -rw-r--r-- | spaghetti-monster/fsm-eeprom.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
