Revert nPins = Bus::getNumberOfPins change

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
netmindz
2025-09-13 13:41:04 +01:00
committed by GitHub
parent 29dcdf8e85
commit 011e72c3c1

View File

@@ -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),