Fix RTX 40 Series Hot Spot and Memory Junction sensor not reading (#1890)

* Resolved an issue where RTX 40 Series sensors.

* change if to else if
This commit is contained in:
辉夜
2025-09-22 23:00:21 +02:00
committed by GitHub
parent afa34e080e
commit 3d8642c03f
@@ -487,6 +487,12 @@ internal sealed class NvidiaGpu : GenericGpu
_hotSpotTemperature.Value = 0;
_memoryJunctionTemperature.Value = thermalSensors.Temperatures[2] / 256.0f;
}
// RTX 40xx series
else if (Name.StartsWith("NVIDIA GeForce RTX 40", StringComparison.OrdinalIgnoreCase))
{
_hotSpotTemperature.Value = thermalSensors.Temperatures[1] / 256.0f;
_memoryJunctionTemperature.Value = thermalSensors.Temperatures[7] / 256.0f;
}
else
{
_hotSpotTemperature.Value = thermalSensors.Temperatures[1] / 256.0f;