From 7685f9b73d8bf0bd150fb26364cc8d7eaca9f406 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Fri, 28 May 2021 17:45:14 +0200 Subject: [PATCH] Ignore analogue pin -1 on ESP8266 --- wled00/button.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wled00/button.cpp b/wled00/button.cpp index 0a016063c..28cecde4c 100644 --- a/wled00/button.cpp +++ b/wled00/button.cpp @@ -148,7 +148,11 @@ void handleButton() static unsigned long lastRead = 0UL; for (uint8_t b=0; b 250) { // button is not a button but a potentiometer if (b+1 == WLED_MAX_BUTTONS) lastRead = millis();