Skip to content

Commit 592db20

Browse files
authored
Merge pull request #25 from 1a2m3/20220626
20220628 update
2 parents b95da1a + 7bcb295 commit 592db20

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/SpdReaderWriterDll/Smbus.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ public enum DeviceId : UInt16 {
337337
#region LGA2066
338338
X299 = 0xA2D2, // CPU SMBus x2 (8086h:2085h)
339339
C422 = 0xA2D3, // Same as X299
340-
#endregion
340+
#endregion
341341

342342
// AMD FCH
343343
FCH = 0x790B, // AM4/ZEN

src/SpdReaderWriterDll/Spd.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public static string GetModuleManufacturer(byte[] input) {
148148

149149
switch (GetRamType(input)) {
150150
case Ram.Type.DDR5:
151-
manufacturerId = (UInt16)(input[0x200] << 8 | input[0x201]);
151+
manufacturerId = (UInt16)((UInt16)(input[0x200] << 8 | input[0x201]) & 0x7FFF);
152152
break;
153153
case Ram.Type.DDR4:
154154
manufacturerId = (UInt16)((input[0x140] << 8 | input[0x141]) & 0x7FFF);
@@ -226,7 +226,6 @@ public static string GetModuleManufacturer(byte[] input) {
226226
case 0x0325: return "Kingmax Semiconductor";
227227
case 0x0198: return "Kingston";
228228
case 0x06A7: return "KINGXCON";
229-
case 0x0798: return "KLEVV";
230229
case 0x09C2: return "Kllisre";
231230
case 0x0A76: return "Lexar Co Limited";
232231
case 0x09A2: return "MAXSUN";

0 commit comments

Comments
 (0)