From da0f6c7c585f5e87621ba57cfcd4dd9ce23dcc9a Mon Sep 17 00:00:00 2001 From: BaptHdm Date: Mon, 27 May 2024 11:08:02 +0200 Subject: [PATCH] repare color wheels --- src/user_functions.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/user_functions.cpp b/src/user_functions.cpp index 7e40853..839b421 100644 --- a/src/user_functions.cpp +++ b/src/user_functions.cpp @@ -179,7 +179,6 @@ void calm_mode_update() { } case 1: // party wheel { - static auto lastColorStep = colorCodeIndex; static auto palettePartyColor = GeneratePaletteIndexed(PalettePartyColors); static uint8_t currentIndex = 0; @@ -451,9 +450,8 @@ void button_clicked(const uint8_t clicks) { } } -void button_hold(const uint8_t clicks, const uint32_t holdDuration) { - bool isEndOfHoldEvent = holdDuration <= 1; - +void button_hold(const uint8_t clicks, const bool isEndOfHoldEvent, + const uint32_t holdDuration) { switch (clicks) { case 3: // 3 clicks and hold if (!isEndOfHoldEvent) {