Fixed an issue where the voltages, temperatures, fans and controls arrays could be null (instead of zero length) causing NullReferenceExceptions in SuperIOHardware.
1.1 --- a/Hardware/LPC/NCT677X.cs Sun Jul 21 15:51:43 2013 +0000
1.2 +++ b/Hardware/LPC/NCT677X.cs Sun Jul 21 21:02:55 2013 +0000
1.3 @@ -20,10 +20,10 @@
1.4
1.5 private readonly Chip chip;
1.6
1.7 - private readonly float?[] voltages;
1.8 - private readonly float?[] temperatures;
1.9 - private readonly float?[] fans ;
1.10 - private readonly float?[] controls;
1.11 + private readonly float?[] voltages = new float?[0];
1.12 + private readonly float?[] temperatures = new float?[0];
1.13 + private readonly float?[] fans = new float?[0];
1.14 + private readonly float?[] controls = new float?[0];
1.15
1.16 // Hardware Monitor
1.17 private const uint ADDRESS_REGISTER_OFFSET = 0x05;