pissing about

This commit is contained in:
2026-08-09 00:55:02 +01:00
parent a1f746fce1
commit 08630fdd14
4 changed files with 25 additions and 12 deletions

View File

@@ -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;
}