mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-31 06:15:08 +00:00
Added another registry path for getting the Heatmaster serial port.
This commit is contained in:
@@ -143,10 +143,10 @@ namespace OpenHardwareMonitor.Hardware.Heatmaster {
|
||||
firmwareRevision = ReadInteger(0, 'V');
|
||||
firmwareCRC = ReadInteger(0, 'C');
|
||||
|
||||
int fanCount = ReadInteger(32, '?');
|
||||
int temperatureCount = ReadInteger(48, '?');
|
||||
int flowCount = ReadInteger(64, '?');
|
||||
int relayCount = ReadInteger(80, '?');
|
||||
int fanCount = Math.Min(ReadInteger(32, '?'), 4);
|
||||
int temperatureCount = Math.Min(ReadInteger(48, '?'), 6);
|
||||
int flowCount = Math.Min(ReadInteger(64, '?'), 1);
|
||||
int relayCount = Math.Min(ReadInteger(80, '?'), 1);
|
||||
|
||||
fans = new Sensor[fanCount];
|
||||
controls = new Sensor[fanCount];
|
||||
|
@@ -71,7 +71,10 @@ namespace OpenHardwareMonitor.Hardware.Heatmaster {
|
||||
List<string> result = new List<string>();
|
||||
try {
|
||||
RegistryKey key = Registry.LocalMachine.OpenSubKey(
|
||||
@"SYSTEM\CurrentControlSet\Enum\USB\Vid_10c4&Pid_ea60&Mi_00");
|
||||
@"SYSTEM\CurrentControlSet\Enum\USB\VID_10C4&PID_EA60");
|
||||
if (key == null)
|
||||
key = Registry.LocalMachine.OpenSubKey(
|
||||
@"SYSTEM\CurrentControlSet\Enum\USB\VID_10C4&PID_EA60&MI_00");
|
||||
if (key != null) {
|
||||
foreach (string subKeyName in key.GetSubKeyNames()) {
|
||||
RegistryKey subKey =
|
||||
|
@@ -38,5 +38,5 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("0.1.37.7")]
|
||||
[assembly: AssemblyFileVersion("0.1.37.7")]
|
||||
[assembly: AssemblyVersion("0.1.37.8")]
|
||||
[assembly: AssemblyFileVersion("0.1.37.8")]
|
||||
|
Reference in New Issue
Block a user