Skip to content

Commit

Permalink
repare color wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteHudyma committed May 27, 2024
1 parent ae87cea commit da0f6c7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/user_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit da0f6c7

Please sign in to comment.