Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/OpenKNX/Led/Serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ namespace OpenKNX

void SerialLedManager::init(uint8_t ledCount)
{
logInfo("SerialLedManager", "init");
logInfo("SerialLedManager", "init %u serial leds", ledCount);

// LED-Todo: check max led count based on platform

Expand All @@ -182,8 +182,8 @@ namespace OpenKNX
.gpio_num = (gpio_num_t)_ledPin,
.clk_src = RMT_CLK_SRC_DEFAULT, // select source clock
.resolution_hz = RMT_LED_STRIP_RESOLUTION_HZ,
.mem_block_symbols = (size_t)(ledCount * BITS_PER_LED_CMD), // increase the block size can make the LED less flickering
.trans_queue_depth = 1, // set the number of transactions that can be pending in the background
.mem_block_symbols = (size_t)max(64 /* required minimum */, ledCount * BITS_PER_LED_CMD), // increase the block size can make the LED less flickering
.trans_queue_depth = 1, // set the number of transactions that can be pending in the background
};
rmt_new_tx_channel(&tx_chan_config, &_led_chan);
_simple_encoder = NULL;
Expand Down
Loading