mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
Update e131_addressable_light_effect.cpp
This commit is contained in:
parent
03b2d3f9d3
commit
460ce5991c
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ bool E131AddressableLightEffect::process_(int universe, const E131Packet &packet
|
||||||
// limit amount of lights per universe and received
|
// limit amount of lights per universe and received
|
||||||
int output_end =
|
int output_end =
|
||||||
std::min(it->size(), std::min(output_offset + get_lights_per_universe(), output_offset + packet.count - 1));
|
std::min(it->size(), std::min(output_offset + get_lights_per_universe(), output_offset + packet.count - 1));
|
||||||
auto *input_data = packet.values + 1;
|
auto *input_data = packet.values + 1 + (this->channel_offset_ * this->channels_);
|
||||||
|
|
||||||
ESP_LOGV(TAG, "Applying data for '%s' on %d universe, for %" PRId32 "-%d.", get_name().c_str(), universe,
|
ESP_LOGV(TAG, "Applying data for '%s' on %d universe, for %" PRId32 "-%d.", get_name().c_str(), universe,
|
||||||
output_offset, output_end);
|
output_offset, output_end);
|
||||||
|
|
Loading…
Reference in a new issue