mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-19 19:40:49 +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:
1 parent
3014204a0d
commit
0bf0482e56
1 file changed
+1
-1
@@ -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