From 0129e7618d6959a4fd230a4f94d63b5f554e80f2 Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 7 Dec 2023 22:33:39 -0800 Subject: [PATCH] oops --- VortexEngine/src/Patterns/Multi/HueShiftPattern.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/VortexEngine/src/Patterns/Multi/HueShiftPattern.cpp b/VortexEngine/src/Patterns/Multi/HueShiftPattern.cpp index 1246690963..d86a35810f 100644 --- a/VortexEngine/src/Patterns/Multi/HueShiftPattern.cpp +++ b/VortexEngine/src/Patterns/Multi/HueShiftPattern.cpp @@ -69,16 +69,12 @@ void HueShiftPattern::play() // because it will never reach the target hue and // always over/under shoot // only increment every blendDelay times - int timetest = ((Time::getCurtime() - 1) % m_blendDelay); ++m_delayCounter; if (m_delayCounter >= m_blendDelay) { m_delayCounter = 0; m_cur.hue += sign; } - HSVColor showColor; - showColor.hue = m_cur.hue; - showColor.sat = 255; - showColor.val = 255; + HSVColor showColor = HSVColor(m_cur.hue, 255, 255); // set the target led with the current HSV color for (LedPos pos = LED_FIRST; pos < LED_COUNT; ++pos) { Leds::setIndex(pos, hsv_to_rgb_generic(showColor));