Improve Kingston Fury detection

This commit is contained in:
Milan Čermák 2024-10-09 02:34:08 +00:00 committed by Adam Honse
parent f802547e7b
commit d5ef41bb80
3 changed files with 177 additions and 65 deletions

View file

@ -79,7 +79,7 @@ bool KingstonFuryDRAMController::SmbusRead(int slot_idx, unsigned char reg, unsi
res = bus->i2c_smbus_read_word_data(device_addr, reg);
if(res >= 0)
{
*val = (res >> 8) & 0xff;
*val = (res >> 8) & 0xFF;
LOG_DEBUG("[%s] %02X reading register &%02X=%02X; res=%02X",
FURY_CONTROLLER_NAME, device_addr, reg, *val, res);
return true;