1
0
Fork 0

initialize the DMP data segment from the sending thread

This commit is contained in:
Kevin Matz 2022-12-09 16:08:16 -05:00
parent 0c9c85830e
commit c9dec23ea9
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,6 @@ UniverseSender::UniverseSender(Source * source, Universe * universe)
// DMP layer
dmp_->setVector(ACN::DMP::SET_PROPERTY);
dmp_->setHeader(addrtyp);
update_dmp_(); // initial data segment
// sACN framing layer
frame_->setVector(VECTOR_E131_DATA_PACKET);
@ -133,6 +132,8 @@ void UniverseSender::loop_()
std::chrono::microseconds sleep;
std::unique_lock lk_thread(mtx_thread_);
update_dmp_(); // initial data segment
while (enabled || terminated_resend > 0)
{
// enforce strict minimum update times