Use read byte rather than quick operation to check for presence of controller

This commit is contained in:
Adam Honse
2021-11-18 08:16:46 -06:00
parent bd5c4c5b38
commit b99db663bb

View File

@@ -140,7 +140,7 @@ bool TestForENESMBusController(i2c_smbus_interface* bus, unsigned char address)
LOG_DEBUG("[ENE SMBus] looking for devices at 0x%02X...", address);
int res = bus->i2c_smbus_write_quick(address, I2C_SMBUS_WRITE);
int res = bus->i2c_smbus_read_byte(address);
if (res >= 0)
{