mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-05 00:35:35 +00:00
(Kyösti)
* Use write-address to detect devices on the bus. Simple clients that you can't read, don't ack the read address. I believe every client has to ack their write address? git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@500 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -78,7 +78,7 @@ int main(int argc, char *argv[])
|
||||
exit(1);
|
||||
}
|
||||
|
||||
res = i2c_smbus_read_byte(file);
|
||||
res = i2c_smbus_write_quick(file, I2C_SMBUS_WRITE);
|
||||
if (res < 0)
|
||||
printf("XX ");
|
||||
else
|
||||
|
Reference in New Issue
Block a user