mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-30 22:05:08 +00:00
Fixed issue #747 introduced in commit 9e32a33
. The IsNuvotonVendor check should be done after setting the vendor ID registers (and not before).
This commit is contained in:
@@ -188,12 +188,6 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
||||
this.revision = revision;
|
||||
this.port = port;
|
||||
|
||||
|
||||
this.isNuvotonVendor = IsNuvotonVendor();
|
||||
|
||||
if (!isNuvotonVendor)
|
||||
return;
|
||||
|
||||
if (chip == LPC.Chip.NCT610X) {
|
||||
VENDOR_ID_HIGH_REGISTER = 0x80FE;
|
||||
VENDOR_ID_LOW_REGISTER = 0x00FE;
|
||||
@@ -217,6 +211,11 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
||||
vBatMonitorControlRegister = 0x005D;
|
||||
}
|
||||
|
||||
this.isNuvotonVendor = IsNuvotonVendor();
|
||||
|
||||
if (!isNuvotonVendor)
|
||||
return;
|
||||
|
||||
switch (chip) {
|
||||
case Chip.NCT6771F:
|
||||
case Chip.NCT6776F:
|
||||
|
Reference in New Issue
Block a user