From 0bf0482e564c53d608a8c3859a950a8c5f884c1c Mon Sep 17 00:00:00 2001 From: Kyosti Malkki Date: Wed, 21 Jul 1999 09:35:40 +0000 Subject: [PATCH] =?UTF-8?q?(Ky=C3=B6sti)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- prog/detect/i2cdetect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prog/detect/i2cdetect.c b/prog/detect/i2cdetect.c index e4952435..b5b8c974 100644 --- a/prog/detect/i2cdetect.c +++ b/prog/detect/i2cdetect.c @@ -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