Skip to content

Commit

Permalink
hack: free up DMA memory for wifi on 128x64 panel
Browse files Browse the repository at this point in the history
  • Loading branch information
rorosaurus committed Nov 9, 2019
1 parent ebf12e4 commit c46fe8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SmartMatrixMultiplexedRefreshEsp32_Impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ void SmartMatrix3RefreshMultiplexed<refreshDepth, matrixWidth, matrixHeight, pan
// TODO: malloc this buffer before other smaller buffers as this is (by far) the largest buffer to allocate?
matrixUpdateFrames[0] = (frameStruct *)heap_caps_malloc(sizeof(frameStruct), MALLOC_CAP_DMA);
assert(matrixUpdateFrames[0] != NULL);
matrixUpdateFrames[1] = (frameStruct *)heap_caps_malloc(sizeof(frameStruct), MALLOC_CAP_DMA);
matrixUpdateFrames[1] = matrixUpdateFrames[0];
assert(matrixUpdateFrames[1] != NULL);

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

0 comments on commit c46fe8d

Please sign in to comment.