Skip to content

Commit

Permalink
Fixed code warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthAffe committed Sep 5, 2021
1 parent 6974203 commit d487bee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RGB.NET.Devices.DMX/E131/E131DeviceInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ internal E131DeviceInfo(E131DMXDeviceDefinition deviceDefinition)
this.Hostname = deviceDefinition.Hostname;
this.Port = deviceDefinition.Port;
this.Universe = deviceDefinition.Universe;

byte[]? cid = deviceDefinition.CID;
if ((cid == null) || (cid.Length != CID_LENGTH))
{
cid = new byte[CID_LENGTH];
new Random().NextBytes(cid);
}

CID = cid!;
CID = cid;

DeviceName = DeviceHelper.CreateDeviceName(Manufacturer, Model);
}
Expand Down

0 comments on commit d487bee

Please sign in to comment.