Skip to content

Commit c46fe8d

Browse files
authoredNov 9, 2019
hack: free up DMA memory for wifi on 128x64 panel
1 parent ebf12e4 commit c46fe8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/SmartMatrixMultiplexedRefreshEsp32_Impl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ void SmartMatrix3RefreshMultiplexed<refreshDepth, matrixWidth, matrixHeight, pan
137137
// TODO: malloc this buffer before other smaller buffers as this is (by far) the largest buffer to allocate?
138138
matrixUpdateFrames[0] = (frameStruct *)heap_caps_malloc(sizeof(frameStruct), MALLOC_CAP_DMA);
139139
assert(matrixUpdateFrames[0] != NULL);
140-
matrixUpdateFrames[1] = (frameStruct *)heap_caps_malloc(sizeof(frameStruct), MALLOC_CAP_DMA);
140+
matrixUpdateFrames[1] = matrixUpdateFrames[0];
141141
assert(matrixUpdateFrames[1] != NULL);
142142

143143
printf("sizeof framestruct: %08X\r\n", (uint32_t)sizeof(frameStruct));

0 commit comments

Comments
 (0)
Please sign in to comment.