Hardware/LPC/F718XX.cs
changeset 352 0899f651d5cf
parent 344 3145aadca3d2
     1.1 --- a/Hardware/LPC/F718XX.cs	Mon May 28 13:45:38 2012 +0000
     1.2 +++ b/Hardware/LPC/F718XX.cs	Fri Jun 22 10:05:23 2012 +0000
     1.3 @@ -52,8 +52,8 @@
     1.4        this.chip = chip;
     1.5  
     1.6        voltages = new float?[chip == Chip.F71858 ? 3 : 9];
     1.7 -      temperatures = new float?[3];
     1.8 -      fans = new float?[chip == Chip.F71882 || chip == Chip.F71858? 4 : 3];
     1.9 +      temperatures = new float?[chip == Chip.F71808E ? 2 : 3];
    1.10 +      fans = new float?[chip == Chip.F71882 || chip == Chip.F71858 ? 4 : 3];
    1.11        controls = new float?[0];
    1.12      }
    1.13  
    1.14 @@ -102,8 +102,13 @@
    1.15          return;
    1.16  
    1.17        for (int i = 0; i < voltages.Length; i++) {
    1.18 -        int value = ReadByte((byte)(VOLTAGE_BASE_REG + i));
    1.19 -        voltages[i] = 0.008f * value;
    1.20 +        if (chip == Chip.F71808E && i == 6) {
    1.21 +          // 0x26 is reserved on F71808E
    1.22 +          voltages[i] = 0;
    1.23 +        } else {
    1.24 +          int value = ReadByte((byte)(VOLTAGE_BASE_REG + i));
    1.25 +          voltages[i] = 0.008f * value;
    1.26 +        }
    1.27        }
    1.28       
    1.29        for (int i = 0; i < temperatures.Length; i++) {