Fix nvapi i2c smbus byte_data read return
This commit is contained in:
parent
10e7fca211
commit
14f9495444
2 changed files with 2 additions and 5 deletions
|
|
@ -87,10 +87,6 @@ bool TestForAsusAuraGPUController(i2c_smbus_interface* bus, unsigned char addres
|
|||
{
|
||||
pass = true;
|
||||
}
|
||||
if(((aura_gpu_magic_high << 8) + aura_gpu_magic_low == 0) && bus->pci_subsystem_device == ASUS_ROG_STRIX_GTX1070TI_A8G_GAMING)
|
||||
{
|
||||
pass = true;
|
||||
}
|
||||
|
||||
return(pass);
|
||||
|
||||
|
|
|
|||
|
|
@ -91,9 +91,10 @@ s32 i2c_smbus_nvapi::i2c_smbus_xfer(u8 addr, char read_write, u8 command, int mo
|
|||
switch (mode)
|
||||
{
|
||||
case I2C_SMBUS_BYTE:
|
||||
case I2C_SMBUS_BYTE_DATA:
|
||||
data->byte = i2c_data.data[0];
|
||||
break;
|
||||
|
||||
|
||||
case I2C_SMBUS_WORD_DATA:
|
||||
data->word = (i2c_data.data[0] | (i2c_data.data[1] << 8));
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue