Skip to content

Commit b2061d3

Browse files
committed
Initial DDR5 ID
1 parent 85c3ac0 commit b2061d3

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

client/data/Methods/Hardware.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,16 @@ private static async Task GetSMBiosMemoryInfo()
159159
stick.PartNumber = smbStringsList[data[0x1A] - 1].Trim();
160160
}
161161

162-
if (0x15 + 1 < data.Length)
162+
if (0x20 + 1 < data.Length && data[0x12] == 0x22)
163+
{
164+
stick.ConfiguredSpeed = (uint?)(data[0x20 + 1] << 8) | data[0x20];
165+
await LogEventAsync("DDR5!", Region.Hardware, EventType.INFORMATION);
166+
}
167+
168+
if (0x15 + 1 < data.Length && data[0x12] != 0x22)
163169
{
164170
stick.ConfiguredSpeed = (uint?)(data[0x15 + 1] << 8) | data[0x15];
171+
await LogEventAsync("Not DDR5!", Region.Hardware, EventType.INFORMATION);
165172
}
166173

167174
if (0xC + 1 < data.Length)

0 commit comments

Comments
 (0)