From 127c700a994b86066bc5e30ae466bd7db9a07d13 Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Sun, 6 Jul 2025 16:22:26 +0100 Subject: [PATCH] Define starting heap with lastHeap --- 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 43b06048..6dfbd88f 100644 --- a/wled00/bus_manager.cpp +++ b/wled00/bus_manager.cpp @@ -783,7 +783,7 @@ void BusNetwork::cleanup() { #endif BusHub75Matrix::BusHub75Matrix(const BusConfig &bc) : Bus(bc.type, bc.start, bc.autoWhite) { - + size_t lastHeap = ESP.getFreeHeap(); _valid = false; _hasRgb = true; _hasWhite = false; @@ -905,7 +905,7 @@ BusHub75Matrix::BusHub75Matrix(const BusConfig &bc) : Bus(bc.type, bc.start, bc. DEBUGBUS_PRINTLN("MatrixPanel_I2S_DMA = Default color order (RGB)"); } else if(bc.colorOrder == COL_ORDER_BGR) { DEBUGBUS_PRINTLN("MatrixPanel_I2S_DMA = color order BGR"); - uint8_t tmpPin; + int8_t tmpPin; tmpPin = mxconfig.gpio.r1; mxconfig.gpio.r1 = mxconfig.gpio.b1; mxconfig.gpio.b1 = tmpPin;