Compare commits

...
Author SHA1 Message Date
Adam Honse 972c0f74e6 Use read byte data for ENE detect 2022-10-02 23:01:28 -05:00
@@ -128,7 +128,12 @@ bool TestForENESMBusController(i2c_smbus_interface* bus, unsigned char address)
int res = bus->i2c_smbus_read_byte(address);
if (res >= 0)
if(res < 0)
{
res = bus->i2c_smbus_read_byte_data(address, 0x00);
}
if(res >= 0)
{
pass = true;