mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 08:55:22 +01:00
Change datatype in e131 addressable light (#5127)
This commit is contained in:
parent
5eb12ac5fe
commit
76c0d0912f
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ bool E131AddressableLightEffect::process_(int universe, const E131Packet &packet
|
||||||
if (universe < first_universe_ || universe > get_last_universe())
|
if (universe < first_universe_ || universe > get_last_universe())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int output_offset = (universe - first_universe_) * get_lights_per_universe();
|
int32_t output_offset = (universe - first_universe_) * get_lights_per_universe();
|
||||||
// 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));
|
||||||
|
|
Loading…
Reference in a new issue