mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-09-01 06:45:12 +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.revision = revision;
|
||||||
this.port = port;
|
this.port = port;
|
||||||
|
|
||||||
|
|
||||||
this.isNuvotonVendor = IsNuvotonVendor();
|
|
||||||
|
|
||||||
if (!isNuvotonVendor)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (chip == LPC.Chip.NCT610X) {
|
if (chip == LPC.Chip.NCT610X) {
|
||||||
VENDOR_ID_HIGH_REGISTER = 0x80FE;
|
VENDOR_ID_HIGH_REGISTER = 0x80FE;
|
||||||
VENDOR_ID_LOW_REGISTER = 0x00FE;
|
VENDOR_ID_LOW_REGISTER = 0x00FE;
|
||||||
@@ -217,6 +211,11 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
|||||||
vBatMonitorControlRegister = 0x005D;
|
vBatMonitorControlRegister = 0x005D;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.isNuvotonVendor = IsNuvotonVendor();
|
||||||
|
|
||||||
|
if (!isNuvotonVendor)
|
||||||
|
return;
|
||||||
|
|
||||||
switch (chip) {
|
switch (chip) {
|
||||||
case Chip.NCT6771F:
|
case Chip.NCT6771F:
|
||||||
case Chip.NCT6776F:
|
case Chip.NCT6776F:
|
||||||
|
Reference in New Issue
Block a user