added exception handling, fixes errors when waking up, or missing network
This commit is contained in:
@@ -145,7 +145,6 @@ public class Telemetry : IDisposable
|
||||
float gpuTemp = GetGpuTemperaturePercent();
|
||||
float vram = GetGpuVramPercent();
|
||||
|
||||
// Prepare 8 floats (future‑proof)
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user