smbus: reduce debug info.
This commit is contained in:
@@ -108,7 +108,7 @@ int i2c_smbus_read_byte_data(int file, uint8_t command)
|
||||
|
||||
int i2c_smbus_write_byte_data(int file, uint8_t command, uint8_t value)
|
||||
{
|
||||
printf("i2c: %02X %02X\n", command, value);
|
||||
//printf("i2c: %02X %02X\n", command, value);
|
||||
union i2c_smbus_data data;
|
||||
data.byte = value;
|
||||
return i2c_smbus_access(file, I2C_SMBUS_WRITE, command, I2C_SMBUS_BYTE_DATA, &data);
|
||||
|
||||
@@ -1060,7 +1060,7 @@ static void hdmi_config()
|
||||
for (uint i = 0; i < sizeof(init_data); i += 2)
|
||||
{
|
||||
int res = i2c_smbus_write_byte_data(fd, init_data[i], init_data[i + 1]);
|
||||
if (res < 0) printf("i2c: write error %d\n", res);
|
||||
if (res < 0) printf("i2c: write error (%02X %02X): %d\n", init_data[i], init_data[i + 1], res);
|
||||
}
|
||||
i2c_close(fd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user