Function is used only when the esp-idf driver is used, thus unclear if it matters yet

wq
This commit is contained in:
Brian Bulkowski
2020-07-18 19:28:59 -07:00
parent 38d97dbca3
commit 171dc8cc8e

View File

@ -366,7 +366,7 @@ void ESP32RMTController::initPulseBuffer(int size_in_bytes)
{
if (mBuffer == 0) {
// -- Each byte has 8 bits, each bit needs a 32-bit RMT item
int size = size_in_bytes * 8 * 4;
mBufferSize = size_in_bytes * 8 * 4;
mBuffer = (rmt_item32_t *) calloc( mBufferSize, sizeof(rmt_item32_t));
}