From b7d81e7fca1506966a1a88cb3923c22253e97b1e Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Thu, 5 Feb 2026 00:07:22 +0100 Subject: [PATCH] bugfix for wrongly disabled PINs Skips pin arrays for special bus types where pin array doesn't contain GPIO numbers, but allows all other entries --- wled00/data/settings_um.htm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wled00/data/settings_um.htm b/wled00/data/settings_um.htm index a9e6809f..a2d867be 100644 --- a/wled00/data/settings_um.htm +++ b/wled00/data/settings_um.htm @@ -58,6 +58,8 @@ // function check(o,k) {} //WLEDMM not needed as we use dropdowns function getPins(o) { if (isO(o)) { + // If this object is a bus instance, extract the "type" field + let busType = o.type !== undefined ? o.type : -1; for (const [k,v] of Object.entries(o)) { if (isO(v)) { owner = k; @@ -65,6 +67,10 @@ continue; } if (k.replace("[]","").substr(-3)=="pin") { + // Skip pin arrays for special bus types where pin array doesn't contain GPIO numbers, but allow all other entries + if (busType >= 80 && busType < 96) continue; // Network buses - pin array stores IP address + if (busType >= 100 && busType <= 110) continue; // HUB75 buses - pin array stores chain length + if (Array.isArray(v)) { for (var i=0; i=0) { pins.push(v[i]); pinO.push(owner); } } else {