From 011e72c3c192324e6229757ecddf91c70c6a7f24 Mon Sep 17 00:00:00 2001 From: netmindz Date: Sat, 13 Sep 2025 13:41:04 +0100 Subject: [PATCH] Revert nPins = Bus::getNumberOfPins change Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- wled00/bus_manager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/bus_manager.h b/wled00/bus_manager.h index 878f93e4..31df680a 100644 --- a/wled00/bus_manager.h +++ b/wled00/bus_manager.h @@ -433,7 +433,7 @@ struct BusConfig { { refreshReq = (bool) GET_BIT(busType,7); type = busType & 0x7F; // bit 7 may be/is hacked to include refresh info (1=refresh in off state, 0=no refresh) - size_t nPins = OUTPUT_MAX_PINS; + size_t nPins = Bus::getNumberOfPins(type); for (size_t i = 0; i < nPins; i++) pins[i] = ppins[i]; DEBUGBUS_PRINTF_P(PSTR("Bus: Config (%d-%d, type:%d, CO:%d, rev:%d, skip:%d, AW:%d kHz:%d, mA:%d/%d)\n"), (int)start, (int)(start+len),