1.1 --- a/Hardware/LPC/IT87.cs Fri Jan 29 21:58:31 2010 +0000
1.2 +++ b/Hardware/LPC/IT87.cs Sun Jan 31 19:30:00 2010 +0000
1.3 @@ -181,9 +181,9 @@
1.4 }
1.5
1.6 foreach (Sensor sensor in temperatures) {
1.7 - int value = ReadByte((byte)(TEMPERATURE_BASE_REG + sensor.Index));
1.8 + sbyte value = (sbyte)ReadByte((byte)(TEMPERATURE_BASE_REG + sensor.Index));
1.9 sensor.Value = value;
1.10 - if (value < 254)
1.11 + if (value < sbyte.MaxValue && value > 0)
1.12 ActivateSensor(sensor);
1.13 else
1.14 DeactivateSensor(sensor);