From 3b1f408b25976e2f8a10b89759211ee22d0ea117 Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Fri, 23 Feb 2024 20:10:45 +0000 Subject: [PATCH] Check full range of TYPE_HUB75MATRIX types --- 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 4161cc93..6f20619c 100644 --- a/wled00/bus_manager.h +++ b/wled00/bus_manager.h @@ -41,7 +41,7 @@ struct BusConfig { if (type >= TYPE_NET_DDP_RGB && type < 96) nPins = 4; //virtual network bus. 4 "pins" store IP address else if (type > 47) nPins = 2; else if (type > 40 && type < 46) nPins = NUM_PWM_PINS(type); - else if (type == TYPE_HUB75MATRIX) nPins = 0; + else if (type >= TYPE_HUB75MATRIX && type <= (TYPE_HUB75MATRIX + 10)) nPins = 0; for (uint8_t i = 0; i < nPins; i++) pins[i] = ppins[i]; }