diff --git a/wled00/button.cpp b/wled00/button.cpp index 96cdfed5..8bf1b4b0 100644 --- a/wled00/button.cpp +++ b/wled00/button.cpp @@ -210,6 +210,7 @@ void handleAnalog(uint8_t b) void handleButton() { static unsigned long lastRead = 0UL; + bool analog = false; for (uint8_t b=0; b 250) { // button is not a button but a potentiometer - if (b+1 == WLED_MAX_BUTTONS) lastRead = millis(); + analog = true; handleAnalog(b); continue; } @@ -275,6 +276,7 @@ void handleButton() shortPressAction(b); } } + if (analog) lastRead = millis(); } void handleIO()