Hardware/LPC/IT87.cs
changeset 13 d32fc5f2e822
parent 7 9523a3322777
child 15 0e812fe67bac
     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);