Library to control NeoPixel strings of RGB leds
Dependents: NeoPixelI2cSlave NeoPixelI2cSlave
Diff: Effects/effects_manager.cpp
- Revision:
- 3:7d32f46a38d3
- Parent:
- 1:f544810b6598
diff -r bb9ebad05691 -r 7d32f46a38d3 Effects/effects_manager.cpp --- a/Effects/effects_manager.cpp Mon Nov 23 21:32:24 2015 +0000 +++ b/Effects/effects_manager.cpp Fri Apr 15 14:38:13 2016 +0000 @@ -8,17 +8,17 @@ void EffectsManager::registerEffect(Effect * effect) { this->effect = effect; - this->effect->start(); + effect->start(); } void EffectsManager::execute(void) { - if (effect && effect->needsExecutionTime()) { + if (effect) { effect->execute(); } } void EffectsManager::unregisterEffect(void) { - this->effect->stop(); + effect->stop(); effect = 0; }