aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-eeprom.c
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-08-22 18:44:06 -0600
committerSelene ToyKeeper2018-08-22 18:44:06 -0600
commitf59f0512646ea2056535814273fd17331b6a1f4c (patch)
tree5ac57a2d77b5f714ad8b89069c2fa10bef421ca9 /spaghetti-monster/fsm-eeprom.c
parentReduced ROM size another 20 bytes by moving candle mode to index 0. Made it ... (diff)
downloadanduril-f59f0512646ea2056535814273fd17331b6a1f4c.tar.gz
anduril-f59f0512646ea2056535814273fd17331b6a1f4c.tar.bz2
anduril-f59f0512646ea2056535814273fd17331b6a1f4c.zip
Replaced hardcoded eeprom index values with auto-calculated enums.
Diffstat (limited to 'spaghetti-monster/fsm-eeprom.c')
-rw-r--r--spaghetti-monster/fsm-eeprom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/spaghetti-monster/fsm-eeprom.c b/spaghetti-monster/fsm-eeprom.c
index bb63c7e..277e2b2 100644
--- a/spaghetti-monster/fsm-eeprom.c
+++ b/spaghetti-monster/fsm-eeprom.c
@@ -22,7 +22,7 @@
#include "fsm-eeprom.h"
-#if EEPROM_BYTES > 0
+#ifdef USE_EEPROM
#ifdef EEPROM_OVERRIDE
uint8_t *eeprom;
#else
@@ -57,7 +57,7 @@ void save_eeprom() {
}
#endif
-#if EEPROM_WL_BYTES > 0
+#ifdef USE_EEPROM_WL
uint8_t eeprom_wl[EEPROM_WL_BYTES];
EEP_OFFSET_T eep_wl_prev_offset;