diff --git a/Hardware/TBalancer/TBalancerGroup.cs b/Hardware/TBalancer/TBalancerGroup.cs index d991195..88c3ce3 100644 --- a/Hardware/TBalancer/TBalancerGroup.cs +++ b/Hardware/TBalancer/TBalancerGroup.cs @@ -4,7 +4,7 @@ License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. - Copyright (C) 2009-2010 Michael Möller + Copyright (C) 2009-2012 Michael Möller */ @@ -32,14 +32,14 @@ namespace OpenHardwareMonitor.Hardware.TBalancer { catch (ArgumentNullException) { return; } catch (EntryPointNotFoundException) { return; } catch (BadImageFormatException) { return; } - + FT_DEVICE_INFO_NODE[] info = new FT_DEVICE_INFO_NODE[numDevices]; if (FTD2XX.FT_GetDeviceInfoList(info, ref numDevices) != FT_STATUS.FT_OK) { report.AppendLine("Status: FT_GetDeviceInfoList failed"); return; } - + // make sure numDevices is not larger than the info array if (numDevices > info.Length) numDevices = (uint)info.Length; @@ -121,10 +121,11 @@ namespace OpenHardwareMonitor.Hardware.TBalancer { if (isValid) { report.AppendLine("Status: OK"); - hardware.Add(new TBalancer(i, protocolVersion, settings)); - return; + hardware.Add(new TBalancer(i, protocolVersion, settings)); } - report.AppendLine(); + + if (i < numDevices - 1) + report.AppendLine(); } } diff --git a/Properties/AssemblyVersion.cs b/Properties/AssemblyVersion.cs index 19a59f8..454de5d 100644 --- a/Properties/AssemblyVersion.cs +++ b/Properties/AssemblyVersion.cs @@ -10,5 +10,5 @@ using System.Reflection; -[assembly: AssemblyVersion("0.4.0.5")] -[assembly: AssemblyInformationalVersion("0.4.0.5 Alpha")] \ No newline at end of file +[assembly: AssemblyVersion("0.4.0.8")] +[assembly: AssemblyInformationalVersion("0.4.0.8 Alpha")] \ No newline at end of file