diff --git a/wled00/wled.cpp b/wled00/wled.cpp index a6143eee6f..88789dcade 100644 --- a/wled00/wled.cpp +++ b/wled00/wled.cpp @@ -429,6 +429,10 @@ void WLED::setup() DEBUG_PRINT(F("heap ")); DEBUG_PRINTLN(ESP.getFreeHeap()); + // Set all button pins without an assigned type to -1. + // This is necessary because partially initializing an array fills the remaining elements with 0, which is a valid GPIO. + for (unsigned i=0; i