Hardware/LPC/IT87XX.cs
changeset 84 05bf128434c6
parent 78 52c16b1d5536
child 110 411b72b73d8f
     1.1 --- a/Hardware/LPC/IT87XX.cs	Sat Mar 27 12:57:09 2010 +0000
     1.2 +++ b/Hardware/LPC/IT87XX.cs	Sat Mar 27 13:04:34 2010 +0000
     1.3 @@ -165,9 +165,7 @@
     1.4  
     1.5          sensor.Value = voltageGains[sensor.Index] * 0.001f * (value << 4);
     1.6          if (sensor.Value > 0)
     1.7 -          ActivateSensor(sensor);
     1.8 -        else
     1.9 -          DeactivateSensor(sensor);
    1.10 +          ActivateSensor(sensor);        
    1.11        }
    1.12  
    1.13        foreach (Sensor sensor in temperatures) {
    1.14 @@ -179,9 +177,7 @@
    1.15  
    1.16          sensor.Value = value + sensor.Parameters[0].Value;
    1.17          if (value < sbyte.MaxValue && value > 0)
    1.18 -          ActivateSensor(sensor);
    1.19 -        else
    1.20 -          DeactivateSensor(sensor);
    1.21 +          ActivateSensor(sensor);        
    1.22        }
    1.23  
    1.24        foreach (Sensor sensor in fans) {
    1.25 @@ -198,7 +194,7 @@
    1.26            if (sensor.Value > 0)
    1.27              ActivateSensor(sensor);
    1.28          } else {
    1.29 -          DeactivateSensor(sensor);
    1.30 +          sensor.Value = null;
    1.31          }
    1.32        }      
    1.33      }