Skip to content

Commit 127c700

Browse files
committed
Define starting heap with lastHeap
1 parent a67a2cb commit 127c700

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wled00/bus_manager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ void BusNetwork::cleanup() {
783783
#endif
784784

785785
BusHub75Matrix::BusHub75Matrix(const BusConfig &bc) : Bus(bc.type, bc.start, bc.autoWhite) {
786-
786+
size_t lastHeap = ESP.getFreeHeap();
787787
_valid = false;
788788
_hasRgb = true;
789789
_hasWhite = false;
@@ -905,7 +905,7 @@ BusHub75Matrix::BusHub75Matrix(const BusConfig &bc) : Bus(bc.type, bc.start, bc.
905905
DEBUGBUS_PRINTLN("MatrixPanel_I2S_DMA = Default color order (RGB)");
906906
} else if(bc.colorOrder == COL_ORDER_BGR) {
907907
DEBUGBUS_PRINTLN("MatrixPanel_I2S_DMA = color order BGR");
908-
uint8_t tmpPin;
908+
int8_t tmpPin;
909909
tmpPin = mxconfig.gpio.r1;
910910
mxconfig.gpio.r1 = mxconfig.gpio.b1;
911911
mxconfig.gpio.b1 = tmpPin;

0 commit comments

Comments
 (0)