- #ifdef TRACK_PREVIOUS_EFFECT
- // Keep track of the effect used last time,
- // detect change in effect, so each effect can
- // have an optional initialization.
-
- static uint8_t effect_last = 255;
- bool initialize = (effect != effect_last) || (led_matrix_config.enable != toggle_enable_last);
- effect_last = effect;
- toggle_enable_last = led_matrix_config.enable;
- #endif
-