Update LinearColorSmoothing.cpp
disable smooth timer when disabled
This commit is contained in:
parent
36124c9afb
commit
951aab1c9d
|
@ -136,6 +136,12 @@ void LinearColorSmoothing::queueColors(const std::vector<ColorRgb> & ledColors)
|
|||
void LinearColorSmoothing::setEnable(bool enable)
|
||||
{
|
||||
_enabled = enable;
|
||||
if (!enable)
|
||||
{
|
||||
_timer.stop();
|
||||
_previousValues.clear();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
bool LinearColorSmoothing::enabled()
|
||||
|
|
Loading…
Reference in New Issue