Skip to content

Commit 53d05bc

Browse files
committed
Improved DDR5 detection
1 parent 04ec083 commit 53d05bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SpdReaderWriterCore/Smbus.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ public byte I2CAddress {
7373

7474
// Check for DDR5 presence
7575
IsDdr5Present = Eeprom.ValidateEepromAddress(_i2CAddress) &&
76-
ProbeAddress((byte)(Eeprom.LidCode.Pmic0 << 3 | (Eeprom.Spd5Register.LocalHid & value)));
76+
ProbeAddress((byte)(Eeprom.LidCode.Pmic0 << 3 | (Eeprom.Spd5Register.LocalHid & value))) &&
77+
ReadByte(_i2CAddress, 00) == 0x51;
7778

7879
// Reset Eeprom page
7980
Eeprom.ResetPageAddress(this);

0 commit comments

Comments
 (0)