mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-09-02 23:35:29 +00:00
Added support for more than one Heatmaster fan controller.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
@@ -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")]
|
Reference in New Issue
Block a user