diff options
| author | Selene ToyKeeper | 2018-08-22 23:46:32 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-08-22 23:46:32 -0600 |
| commit | 00c177bb32715fc5b3f9873cc981e6c263b0ae66 (patch) | |
| tree | 750f9763d723a443fcb008f5fa925e309ab1e33e /spaghetti-monster/fsm-eeprom.h | |
| parent | Removed symlinks to fix Windows checkouts. Copies those files from their ori... (diff) | |
| parent | Made anduril.c no longer executable. (diff) | |
| download | anduril-00c177bb32715fc5b3f9873cc981e6c263b0ae66.tar.gz anduril-00c177bb32715fc5b3f9873cc981e6c263b0ae66.tar.bz2 anduril-00c177bb32715fc5b3f9873cc981e6c263b0ae66.zip | |
merged in zeroflow's fixes and my related changes:
- fixed main emitters coming on while changing aux LED mode
- made strobe group mode selection more configurable at compile time
- refactored eeprom indexes in the same manner as strobe indexes,
for cleaner and more robust code
- added -fshort-enums to compile options for smaller ROM size
- made interrupt_nice_delays() automatic every time the user completes
a button press sequence, so all delays collapse until the next trip
through main()... this reduces ROM size and simplifies code and
eliminates risk of not responding right away
Tested on D4 and D4S.
Diffstat (limited to 'spaghetti-monster/fsm-eeprom.h')
| -rw-r--r-- | spaghetti-monster/fsm-eeprom.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
