mirror of
https://github.com/bbulkow/FastLED-idf.git
synced 2025-07-30 10:48:06 +02:00
Function is used only when the esp-idf driver is used, thus unclear if it matters yet
wq
This commit is contained in:
@ -366,7 +366,7 @@ void ESP32RMTController::initPulseBuffer(int size_in_bytes)
|
|||||||
{
|
{
|
||||||
if (mBuffer == 0) {
|
if (mBuffer == 0) {
|
||||||
// -- Each byte has 8 bits, each bit needs a 32-bit RMT item
|
// -- 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));
|
mBuffer = (rmt_item32_t *) calloc( mBufferSize, sizeof(rmt_item32_t));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user