Hardware/TBalancer/TBalancerGroup.cs
changeset 166 fa9dfbfc4145
parent 165 813d8bc3192f
child 182 4801e9eaf979
     1.1 --- a/Hardware/TBalancer/TBalancerGroup.cs	Sun Aug 08 13:57:26 2010 +0000
     1.2 +++ b/Hardware/TBalancer/TBalancerGroup.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.IO;
     1.9  using System.IO.Ports;
    1.10  using System.Text;
    1.11 @@ -62,7 +63,8 @@
    1.12        FTD2XX.FT_GetDeviceInfoList(info, ref numDevices);
    1.13  
    1.14        for (int i = 0; i < numDevices; i++) {
    1.15 -        report.Append("Device Index: "); report.AppendLine(i.ToString());
    1.16 +        report.Append("Device Index: ");
    1.17 +        report.AppendLine(i.ToString(CultureInfo.InvariantCulture));
    1.18          
    1.19          FT_HANDLE handle;
    1.20          FT_STATUS status;
    1.21 @@ -112,7 +114,8 @@
    1.22                protocolVersion = data[274];
    1.23                if (!isValid) {
    1.24                  report.Append("Status: Wrong Protocol Version: 0x");
    1.25 -                report.AppendLine(protocolVersion.ToString("X"));
    1.26 +                report.AppendLine(
    1.27 +                  protocolVersion.ToString("X", CultureInfo.InvariantCulture));
    1.28                }
    1.29              } else {
    1.30                report.AppendLine("Status: Wrong Message Length: " + length);