Hardware/LPC/F718XX.cs
changeset 84 05bf128434c6
parent 68 d706e16a79c0
child 103 0845adc5402e
     1.1 --- a/Hardware/LPC/F718XX.cs	Sat Mar 27 12:57:09 2010 +0000
     1.2 +++ b/Hardware/LPC/F718XX.cs	Sat Mar 27 13:04:34 2010 +0000
     1.3 @@ -130,8 +130,6 @@
     1.4          sensor.Value = voltageGains[sensor.Index] * 0.001f * (value << 4);
     1.5          if (sensor.Value > 0)
     1.6            ActivateSensor(sensor);
     1.7 -        else
     1.8 -          DeactivateSensor(sensor);
     1.9        }
    1.10       
    1.11        foreach (Sensor sensor in temperatures) {
    1.12 @@ -156,7 +154,7 @@
    1.13                  sensor.Value = value / 128.0f;
    1.14                  ActivateSensor(sensor);
    1.15                } else {
    1.16 -                DeactivateSensor(sensor);
    1.17 +                sensor.Value = null;
    1.18                }
    1.19            } break;
    1.20            default: {
    1.21 @@ -165,8 +163,6 @@
    1.22              sensor.Value = value + sensor.Parameters[0].Value;
    1.23              if (value < sbyte.MaxValue && value > 0)
    1.24                ActivateSensor(sensor);
    1.25 -            else
    1.26 -              DeactivateSensor(sensor);
    1.27            } break;
    1.28          }
    1.29        }
    1.30 @@ -180,7 +176,7 @@
    1.31            if (sensor.Value > 0)
    1.32              ActivateSensor(sensor);
    1.33          } else {
    1.34 -          DeactivateSensor(sensor);
    1.35 +          sensor.Value = null;
    1.36          }
    1.37        }      
    1.38      }