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:
Michael Möller
2015-12-01 19:05:00 +01:00
parent e19faf5047
commit 135124427b

View File

@@ -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: