From ef752306f1766973f234be31c8d41cb586908f23 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Tue, 12 Mar 2019 04:38:40 -0600 Subject: don't use eeprom for ramp config if ramp config isn't enabled --- spaghetti-monster/anduril/anduril.c | 2 ++ spaghetti-monster/fireflies-ui/fireflies-ui.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c index 30a0780..f92b8f9 100644 --- a/spaghetti-monster/anduril/anduril.c +++ b/spaghetti-monster/anduril/anduril.c @@ -138,11 +138,13 @@ #define USE_EEPROM typedef enum { ramp_style_e, + #ifdef USE_RAMP_CONFIG ramp_smooth_floor_e, ramp_smooth_ceil_e, ramp_discrete_floor_e, ramp_discrete_ceil_e, ramp_discrete_steps_e, + #endif #ifdef USE_STROBE_STATE strobe_type_e, #endif diff --git a/spaghetti-monster/fireflies-ui/fireflies-ui.c b/spaghetti-monster/fireflies-ui/fireflies-ui.c index fa0b160..0fc2a1d 100644 --- a/spaghetti-monster/fireflies-ui/fireflies-ui.c +++ b/spaghetti-monster/fireflies-ui/fireflies-ui.c @@ -182,11 +182,13 @@ #define USE_EEPROM typedef enum { ramp_style_e, + #ifdef USE_RAMP_CONFIG ramp_smooth_floor_e, ramp_smooth_ceil_e, ramp_discrete_floor_e, ramp_discrete_ceil_e, ramp_discrete_steps_e, + #endif #ifdef USE_STROBE_STATE strobe_type_e, #endif -- cgit v1.2.3