Added support for more than one Heatmaster fan controller.

This commit is contained in:
Michael Möller
2010-09-24 21:33:55 +00:00
parent acf99ee2d7
commit e94f1c5874
2 changed files with 3 additions and 4 deletions

View File

@@ -99,7 +99,7 @@ namespace OpenHardwareMonitor.Hardware.Heatmaster {
return; return;
string[] portNames = GetRegistryPortNames(); string[] portNames = GetRegistryPortNames();
for (int i = portNames.Length - 1; i >= 0; i--) { for (int i = 0; i < portNames.Length; i++) {
bool isValid = false; bool isValid = false;
try { try {
using (SerialPort serialPort = using (SerialPort serialPort =
@@ -169,7 +169,6 @@ namespace OpenHardwareMonitor.Hardware.Heatmaster {
if (isValid) { if (isValid) {
report.AppendLine("Status: OK"); report.AppendLine("Status: OK");
hardware.Add(new Heatmaster(portNames[i], settings)); hardware.Add(new Heatmaster(portNames[i], settings));
return;
} }
report.AppendLine(); report.AppendLine();
} }

View File

@@ -37,5 +37,5 @@
using System.Reflection; using System.Reflection;
[assembly: AssemblyVersion("0.1.37.16")] [assembly: AssemblyVersion("0.1.37.17")]
[assembly: AssemblyInformationalVersion("0.1.37.16 Alpha")] [assembly: AssemblyInformationalVersion("0.1.37.17 Alpha")]