Skip to content

Commit

Permalink
Fix udpe131 not enabled for generated CID
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Grey committed Jul 5, 2020
1 parent 5ffd10c commit 898a7aa
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions libsrc/leddevice/dev_net/LedDeviceUdpE131.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,21 @@ bool LedDeviceUdpE131::init(const QJsonObject &deviceConfig)
if (_json_cid.isEmpty())
{
_e131_cid = QUuid::createUuid();
Debug( _log, "e131 no cid found, generated %s", QSTRING_CSTR(_e131_cid.toString()));
Debug( _log, "e131 no CID found, generated %s", QSTRING_CSTR(_e131_cid.toString()));
isInitOK = true;
}
else
{
_e131_cid = QUuid(_json_cid);
Debug( _log, "e131 cid found, using %s", QSTRING_CSTR(_e131_cid.toString()));
isInitOK = true;
if ( !_e131_cid.isNull() )
{
Debug( _log, "e131 CID found, using %s", QSTRING_CSTR(_e131_cid.toString()));
isInitOK = true;
}
else
{
this->setInError("CID configured is not a valid UUID. Format expected is \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"");
}
}
}
return isInitOK;
Expand Down

0 comments on commit 898a7aa

Please sign in to comment.