diff -r 3fdadd4a830f -r 05bf128434c6 Hardware/LPC/F718XX.cs --- a/Hardware/LPC/F718XX.cs Sat Mar 27 12:57:09 2010 +0000 +++ b/Hardware/LPC/F718XX.cs Sat Mar 27 13:04:34 2010 +0000 @@ -130,8 +130,6 @@ sensor.Value = voltageGains[sensor.Index] * 0.001f * (value << 4); if (sensor.Value > 0) ActivateSensor(sensor); - else - DeactivateSensor(sensor); } foreach (Sensor sensor in temperatures) { @@ -156,7 +154,7 @@ sensor.Value = value / 128.0f; ActivateSensor(sensor); } else { - DeactivateSensor(sensor); + sensor.Value = null; } } break; default: { @@ -165,8 +163,6 @@ sensor.Value = value + sensor.Parameters[0].Value; if (value < sbyte.MaxValue && value > 0) ActivateSensor(sensor); - else - DeactivateSensor(sensor); } break; } } @@ -180,7 +176,7 @@ if (sensor.Value > 0) ActivateSensor(sensor); } else { - DeactivateSensor(sensor); + sensor.Value = null; } } }