From 78fb9dcc5969c50ca6a8bf1cb838a21d06e9e5f6 Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Sun, 8 Sep 2024 13:39:38 +0100 Subject: [PATCH] Cleanup mxconfig.chain_length --- wled00/bus_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/bus_manager.cpp b/wled00/bus_manager.cpp index a4d1b499..8a7d53cb 100644 --- a/wled00/bus_manager.cpp +++ b/wled00/bus_manager.cpp @@ -801,8 +801,8 @@ BusHub75Matrix::BusHub75Matrix(BusConfig &bc) : Bus(bc.type, bc.start, bc.autoWh mxconfig.chain_length = max((u_int8_t) 1, min(bc.pins[2], (u_int8_t) 4)); // prevent bad data preventing boot due to low memory - if(mxconfig.mx_height >= 64 && (bc.pins[2] > 1)) { - DEBUG_PRINTLN("WARNING, only single panel can be used of 64 pixel boards due to memory") + if(mxconfig.mx_height >= 64 && (mxconfig.chain_length > 1)) { + DEBUG_PRINTLN("WARNING, only single panel can be used of 64 pixel boards due to memory"); mxconfig.chain_length = 1; }