diff -r fbf22ccd9d6f -r 0ee888c485d5 Hardware/LPC/LPCIO.cs --- a/Hardware/LPC/LPCIO.cs Tue Sep 21 10:33:28 2010 +0000 +++ b/Hardware/LPC/LPCIO.cs Tue Sep 21 20:32:36 2010 +0000 @@ -44,12 +44,12 @@ namespace OpenHardwareMonitor.Hardware.LPC { internal class LPCIO { - private List superIOs = new List(); - private StringBuilder report = new StringBuilder(); + private readonly List superIOs = new List(); + private readonly StringBuilder report = new StringBuilder(); // I/O Ports - private ushort[] REGISTER_PORTS = new ushort[] { 0x2E, 0x4E }; - private ushort[] VALUE_PORTS = new ushort[] { 0x2F, 0x4F }; + private readonly ushort[] REGISTER_PORTS = new ushort[] { 0x2E, 0x4E }; + private readonly ushort[] VALUE_PORTS = new ushort[] { 0x2F, 0x4F }; private ushort registerPort; private ushort valuePort; @@ -110,11 +110,10 @@ private bool DetectWinbondFintek() { WinbondFintekEnter(); - byte logicalDeviceNumber; + byte logicalDeviceNumber = 0; byte id = ReadByte(CHIP_ID_REGISTER); byte revision = ReadByte(CHIP_REVISION_REGISTER); Chip chip = Chip.Unknown; - logicalDeviceNumber = 0; switch (id) { case 0x05: switch (revision) { @@ -441,8 +440,7 @@ public string GetReport() { if (report.Length > 0) { - return "LPCIO" + Environment.NewLine + Environment.NewLine + - report.ToString(); + return "LPCIO" + Environment.NewLine + Environment.NewLine + report; } else return null; }