1.1 --- a/Hardware/TBalancer/TBalancerGroup.cs Tue Sep 14 19:23:11 2010 +0000
1.2 +++ b/Hardware/TBalancer/TBalancerGroup.cs Wed Sep 15 18:43:15 2010 +0000
1.3 @@ -63,7 +63,15 @@
1.4 for (int i = 0; i < numDevices; i++) {
1.5 report.Append("Device Index: ");
1.6 report.AppendLine(i.ToString(CultureInfo.InvariantCulture));
1.7 -
1.8 + report.Append("Device Type: ");
1.9 + report.AppendLine(info[i].Type.ToString());
1.10 +
1.11 + // the T-Balancer always uses an FT232BM
1.12 + if (info[i].Type != FT_DEVICE.FT_DEVICE_232BM) {
1.13 + report.AppendLine("Status: Wrong device type");
1.14 + continue;
1.15 + }
1.16 +
1.17 FT_HANDLE handle;
1.18 FT_STATUS status;
1.19 status = FTD2XX.FT_Open(i, out handle);