Skip to content

Commit cd72350

Browse files
committed
Support X870E Apex CPU Sensor Index for BIOS 1804+
X870E Apex's CPU Sensor Index changed from 22 to 21 after the latest BIOS 1804 update.
1 parent 54697f9 commit cd72350

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

OpenHardwareMonitorLib/Hardware/Motherboard/SuperIOHardware.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5068,12 +5068,18 @@ private static void GetNuvotonConfigurationD(ISuperIO superIO, Manufacturer manu
50685068
t.Add(new Temperature("CPU Package", 0));
50695069
t.Add(new Temperature("VRM", 1));
50705070
t.Add(new Temperature("Motherboard", 2));
5071+
5072+
// BIOS 1804 or above moved CPU Temp Sensor to 21
5073+
t.Add(new Temperature("CPU", 21));
5074+
5075+
// For BIOS 1803 or older
50715076
t.Add(new Temperature("CPU", 22));
50725077

50735078
// Add all unmapped temperature sensors
50745079
for (int i = 3; i < superIO.Temperatures.Length; i++)
50755080
{
5076-
if (i != 22)
5081+
// 21 and 22 are not used at the same time
5082+
if (i != 21 && i != 22)
50775083
{
50785084
t.Add(new Temperature($"Temperature #{i}", i));
50795085
}

0 commit comments

Comments
 (0)