changeset 34 | dc276daadb2c |
parent 31 | c4d1fb76a9e1 |
child 36 | 32adc68f54f8 |
1.1 --- a/Hardware/LPC/IT87XX.cs Sun Feb 07 20:59:13 2010 +0000 1.2 +++ b/Hardware/LPC/IT87XX.cs Mon Feb 08 20:18:25 2010 +0000 1.3 @@ -164,7 +164,8 @@ 1.4 1.5 if (value > 0) { 1.6 sensor.Value = (value < 0xffff) ? 1.35e6f / ((value) * 2) : 0; 1.7 - ActivateSensor(sensor); 1.8 + if (sensor.Value > 0) 1.9 + ActivateSensor(sensor); 1.10 } else { 1.11 DeactivateSensor(sensor); 1.12 }