From b2061d38baecd2bebd501cf8d53b5028baa5efdb Mon Sep 17 00:00:00 2001 From: K97i <105120272+K97i@users.noreply.github.com> Date: Fri, 19 Sep 2025 12:59:32 +0800 Subject: [PATCH] Initial DDR5 ID --- client/data/Methods/Hardware.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/client/data/Methods/Hardware.cs b/client/data/Methods/Hardware.cs index 4582c30..9f367c6 100644 --- a/client/data/Methods/Hardware.cs +++ b/client/data/Methods/Hardware.cs @@ -159,9 +159,16 @@ private static async Task GetSMBiosMemoryInfo() stick.PartNumber = smbStringsList[data[0x1A] - 1].Trim(); } - if (0x15 + 1 < data.Length) + if (0x20 + 1 < data.Length && data[0x12] == 0x22) + { + stick.ConfiguredSpeed = (uint?)(data[0x20 + 1] << 8) | data[0x20]; + await LogEventAsync("DDR5!", Region.Hardware, EventType.INFORMATION); + } + + if (0x15 + 1 < data.Length && data[0x12] != 0x22) { stick.ConfiguredSpeed = (uint?)(data[0x15 + 1] << 8) | data[0x15]; + await LogEventAsync("Not DDR5!", Region.Hardware, EventType.INFORMATION); } if (0xC + 1 < data.Length)