mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
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
Block a user