Fixed Issue 91.
authormoel.mich
Sat, 17 Jul 2010 13:25:42 +0000
changeset 1558ffea928daad
parent 154 9257814ba151
child 156 3e2ab626531c
Fixed Issue 91.
Hardware/CPU/IntelCPU.cs
     1.1 --- a/Hardware/CPU/IntelCPU.cs	Wed Jul 14 21:10:26 2010 +0000
     1.2 +++ b/Hardware/CPU/IntelCPU.cs	Sat Jul 17 13:25:42 2010 +0000
     1.3 @@ -180,6 +180,7 @@
     1.4                new ParameterDescription("TSlope [°C]", 
     1.5                  "Temperature slope of the digital thermal sensor.\n" + 
     1.6                  "Temperature = TjMax - TSlope * Value.", 1)});
     1.7 +          ActivateSensor(coreTemperatures[i]);
     1.8          }
     1.9        } else {
    1.10          coreTemperatures = new Sensor[0];
    1.11 @@ -331,9 +332,8 @@
    1.12              float tjMax = coreTemperatures[i].Parameters[0].Value;
    1.13              float tSlope = coreTemperatures[i].Parameters[1].Value;
    1.14              coreTemperatures[i].Value = tjMax - tSlope * deltaT;
    1.15 -            ActivateSensor(coreTemperatures[i]);
    1.16            } else {
    1.17 -            DeactivateSensor(coreTemperatures[i]);
    1.18 +            coreTemperatures[i].Value = null;
    1.19            }
    1.20          }
    1.21        }