From 951aab1c9d3f116f041ca1f233691483803a865b Mon Sep 17 00:00:00 2001 From: redPanther Date: Thu, 8 Sep 2016 18:07:57 +0200 Subject: [PATCH] Update LinearColorSmoothing.cpp disable smooth timer when disabled --- libsrc/hyperion/LinearColorSmoothing.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libsrc/hyperion/LinearColorSmoothing.cpp b/libsrc/hyperion/LinearColorSmoothing.cpp index 404e6662..bbdc8875 100644 --- a/libsrc/hyperion/LinearColorSmoothing.cpp +++ b/libsrc/hyperion/LinearColorSmoothing.cpp @@ -136,6 +136,12 @@ void LinearColorSmoothing::queueColors(const std::vector & ledColors) void LinearColorSmoothing::setEnable(bool enable) { _enabled = enable; + if (!enable) + { + _timer.stop(); + _previousValues.clear(); + + } } bool LinearColorSmoothing::enabled()