mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-09-02 15:25:22 +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');
|
firmwareRevision = ReadInteger(0, 'V');
|
||||||
firmwareCRC = ReadInteger(0, 'C');
|
firmwareCRC = ReadInteger(0, 'C');
|
||||||
|
|
||||||
int fanCount = ReadInteger(32, '?');
|
int fanCount = Math.Min(ReadInteger(32, '?'), 4);
|
||||||
int temperatureCount = ReadInteger(48, '?');
|
int temperatureCount = Math.Min(ReadInteger(48, '?'), 6);
|
||||||
int flowCount = ReadInteger(64, '?');
|
int flowCount = Math.Min(ReadInteger(64, '?'), 1);
|
||||||
int relayCount = ReadInteger(80, '?');
|
int relayCount = Math.Min(ReadInteger(80, '?'), 1);
|
||||||
|
|
||||||
fans = new Sensor[fanCount];
|
fans = new Sensor[fanCount];
|
||||||
controls = new Sensor[fanCount];
|
controls = new Sensor[fanCount];
|
||||||
|
@@ -71,7 +71,10 @@ namespace OpenHardwareMonitor.Hardware.Heatmaster {
|
|||||||
List<string> result = new List<string>();
|
List<string> result = new List<string>();
|
||||||
try {
|
try {
|
||||||
RegistryKey key = Registry.LocalMachine.OpenSubKey(
|
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) {
|
if (key != null) {
|
||||||
foreach (string subKeyName in key.GetSubKeyNames()) {
|
foreach (string subKeyName in key.GetSubKeyNames()) {
|
||||||
RegistryKey subKey =
|
RegistryKey subKey =
|
||||||
|
@@ -38,5 +38,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion("0.1.37.7")]
|
[assembly: AssemblyVersion("0.1.37.8")]
|
||||||
[assembly: AssemblyFileVersion("0.1.37.7")]
|
[assembly: AssemblyFileVersion("0.1.37.8")]
|
||||||
|
Reference in New Issue
Block a user