From 135124427be8df0f7f340e5b74833f74f15f5b4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=B6ller?= Date: Tue, 1 Dec 2015 19:05:00 +0100 Subject: [PATCH] Fixed issue #747 introduced in commit 9e32a33. The IsNuvotonVendor check should be done after setting the vendor ID registers (and not before). --- Hardware/LPC/NCT677X.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Hardware/LPC/NCT677X.cs b/Hardware/LPC/NCT677X.cs index cd27b64..25baacc 100644 --- a/Hardware/LPC/NCT677X.cs +++ b/Hardware/LPC/NCT677X.cs @@ -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: