mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-09-08 11:20:43 -04:00
Revert "Change test in ENE SMBus controller to fix a conflict where it locks up Corsair DDR5 Light Enhancement Kit sticks"
This reverts commit c4e0164479.
This commit is contained in:
1 parent
2847270c97
commit
0ee04c497b
1 file changed
+6
-1
@@ -127,7 +127,12 @@ bool TestForENESMBusController(i2c_smbus_interface* bus, unsigned char address)
|
|||||||
|
|
||||||
LOG_DEBUG("[ENE SMBus] looking for devices at 0x%02X...", address);
|
LOG_DEBUG("[ENE SMBus] looking for devices at 0x%02X...", address);
|
||||||
|
|
||||||
int res = bus->i2c_smbus_read_byte_data(address, 0x00);
|
int res = bus->i2c_smbus_read_byte(address);
|
||||||
|
|
||||||
|
if(res < 0)
|
||||||
|
{
|
||||||
|
res = bus->i2c_smbus_read_byte_data(address, 0x00);
|
||||||
|
}
|
||||||
|
|
||||||
if(res >= 0)
|
if(res >= 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user