added exception handling, fixes errors when waking up, or missing network

This commit is contained in:
2026-01-18 14:48:32 +01:00
parent c1d7ba4b3d
commit b8d5e25352
3 changed files with 62 additions and 8 deletions

View File

@@ -145,7 +145,6 @@ public class Telemetry : IDisposable
float gpuTemp = GetGpuTemperaturePercent();
float vram = GetGpuVramPercent();
// Prepare 8 floats (futureproof)
float[] packet =
{
cpu,
@@ -154,8 +153,8 @@ public class Telemetry : IDisposable
gpu3d,
gpuTemp,
vram,
0f, // reserved for future use
0f // reserved for future use
0f,
0f
};
udp.SendFloats(packet);