Moved settings from preprocessor directives to variables. Also added a way to (for now only) display them via HTTP server.
This commit is contained in:
@ -11,8 +11,8 @@ CycleEffect::~CycleEffect() {
|
||||
}
|
||||
|
||||
void CycleEffect::changeEffect() {
|
||||
int new_id;
|
||||
if (EFFECT_CYCLE_RANDOM) {
|
||||
uint8_t new_id;
|
||||
if (settings.effects.cycle.random && _effects_count>1) {
|
||||
do {
|
||||
new_id = random8(cycle_effects_count);
|
||||
} while (new_id == effect_id);
|
||||
|
Reference in New Issue
Block a user