Skip to content

Commit

Permalink
dmx: e1.31 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Feb 7, 2025
1 parent eab526b commit 5db3faa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ossia/protocols/artnet/e131_protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ void e131_protocol::update_function()
{
int universe = this->m_conf.universe + current_universe;
e131_packet pkt;
e131_pkt_init(&pkt, universe, 512);
e131_pkt_init(&pkt, universe, this->m_conf.channels_per_universe);

for(size_t pos = 0; pos < 512; pos++)
for(size_t pos = 0; pos < this->m_conf.channels_per_universe; pos++)
pkt.dmp.prop_val[pos + 1]
= m_buffer.data[current_universe * m_conf.channels_per_universe + pos];
pkt.frame.seq_number = seq.fetch_add(1, std::memory_order_relaxed);
Expand Down

0 comments on commit 5db3faa

Please sign in to comment.