Hardware/LPC/IT87XX.cs
changeset 166 fa9dfbfc4145
parent 165 813d8bc3192f
child 170 31858ba46e9c
     1.1 --- a/Hardware/LPC/IT87XX.cs	Sun Aug 08 13:57:26 2010 +0000
     1.2 +++ b/Hardware/LPC/IT87XX.cs	Thu Aug 12 20:53:27 2010 +0000
     1.3 @@ -37,6 +37,7 @@
     1.4  
     1.5  using System;
     1.6  using System.Collections.Generic;
     1.7 +using System.Globalization;
     1.8  using System.Text;
     1.9  
    1.10  namespace OpenHardwareMonitor.Hardware.LPC {
    1.11 @@ -114,8 +115,10 @@
    1.12        r.AppendLine("LPC " + this.GetType().Name);
    1.13        r.AppendLine();
    1.14        r.Append("Chip ID: 0x"); r.AppendLine(chip.ToString("X"));
    1.15 -      r.Append("Chip Version: 0x"); r.AppendLine(version.ToString("X"));
    1.16 -      r.Append("Base Address: 0x"); r.AppendLine(address.ToString("X4"));
    1.17 +      r.Append("Chip Version: 0x"); r.AppendLine(
    1.18 +        version.ToString("X", CultureInfo.InvariantCulture));
    1.19 +      r.Append("Base Address: 0x"); r.AppendLine(
    1.20 +        address.ToString("X4", CultureInfo.InvariantCulture));
    1.21        r.AppendLine();
    1.22  
    1.23        if (!WinRing0.WaitIsaBusMutex(100))
    1.24 @@ -126,13 +129,15 @@
    1.25        r.AppendLine("      00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F");
    1.26        r.AppendLine();
    1.27        for (int i = 0; i <= 0xA; i++) {
    1.28 -        r.Append(" "); r.Append((i << 4).ToString("X2")); r.Append("  ");
    1.29 +        r.Append(" "); 
    1.30 +        r.Append((i << 4).ToString("X2", CultureInfo.InvariantCulture)); 
    1.31 +        r.Append("  ");
    1.32          for (int j = 0; j <= 0xF; j++) {
    1.33            r.Append(" ");
    1.34            bool valid;
    1.35            byte value = ReadByte((byte)((i << 4) | j), out valid);
    1.36            if (valid)
    1.37 -            r.Append(value.ToString("X2"));
    1.38 +            r.Append(value.ToString("X2", CultureInfo.InvariantCulture));
    1.39            else
    1.40              r.Append("??");
    1.41          }