pissing about
This commit is contained in:
@@ -56,8 +56,14 @@ public class WledDdpClient
|
||||
|
||||
// Copy the pixel payload into the packet
|
||||
Buffer.BlockCopy(rgbData, offset, packet, 10, chunkLength);
|
||||
|
||||
await _udp.SendAsync(packet, packet.Length, _ip, Port);
|
||||
try
|
||||
{
|
||||
await _udp.SendAsync(packet, packet.Length, _ip, Port);
|
||||
}
|
||||
catch
|
||||
{
|
||||
Console.WriteLine("Connection to matrix failed");
|
||||
}
|
||||
|
||||
offset += chunkLength;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user