From f59f0512646ea2056535814273fd17331b6a1f4c Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Wed, 22 Aug 2018 18:44:06 -0600 Subject: Replaced hardcoded eeprom index values with auto-calculated enums. --- spaghetti-monster/fsm-eeprom.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spaghetti-monster/fsm-eeprom.h') diff --git a/spaghetti-monster/fsm-eeprom.h b/spaghetti-monster/fsm-eeprom.h index a668588..3621106 100644 --- a/spaghetti-monster/fsm-eeprom.h +++ b/spaghetti-monster/fsm-eeprom.h @@ -32,7 +32,7 @@ #define EEPROM_WL_BYTES 0 #endif -#if EEPROM_BYTES > 0 +#ifdef USE_EEPROM #if EEPROM_BYTES >= (EEPSIZE/2) #error Requested EEPROM_BYTES too big. #endif @@ -46,7 +46,7 @@ void save_eeprom(); #define EEP_START (EEPSIZE/2) #endif -#if EEPROM_WL_BYTES > 0 +#ifdef USE_EEPROM_WL #if EEPROM_WL_BYTES >= (EEPSIZE/4) #error Requested EEPROM_WL_BYTES too big. #endif -- cgit v1.2.3