Hardware/LPC/F718XX.cs
changeset 132 680ed54e05ca
parent 130 80065ab20b84
child 162 2129ccee0bd1
     1.1 --- a/Hardware/LPC/F718XX.cs	Sat Jun 05 09:40:57 2010 +0000
     1.2 +++ b/Hardware/LPC/F718XX.cs	Sat Jun 05 11:15:16 2010 +0000
     1.3 @@ -64,7 +64,7 @@
     1.4        WinRing0.WriteIoPortByte(
     1.5          (ushort)(address + ADDRESS_REGISTER_OFFSET), register);
     1.6        return WinRing0.ReadIoPortByte((ushort)(address + DATA_REGISTER_OFFSET));
     1.7 -    } 
     1.8 +    }
     1.9  
    1.10      public F718XX(Chip chip, ushort address) {
    1.11        this.address = address;
    1.12 @@ -108,7 +108,7 @@
    1.13  
    1.14        for (int i = 0; i < voltages.Length; i++) {
    1.15          int value = ReadByte((byte)(VOLTAGE_BASE_REG + i));
    1.16 -        voltages[i] = 0.001f * (value << 4);
    1.17 +        voltages[i] = 0.008f * value;
    1.18        }
    1.19       
    1.20        for (int i = 0; i < temperatures.Length; i++) {