commit | 34b613e78a2533dfdab133004ac820e2c7b2f824 | [log] [tgz] |
---|---|---|
author | wdenk <wdenk> | Tue Dec 17 01:51:00 2002 +0000 |
committer | wdenk <wdenk> | Tue Dec 17 01:51:00 2002 +0000 |
tree | ea9e54617d8a6f6b2d05d37c7f2bde24ce6dfb35 | |
parent | 9dfa8d1a5db58761274e9b56c340948b7dd78f14 [diff] [blame] |
* Use 1-byte-read instead of -write for iprobe() function Add i2c commands to PM826 config * extend I2C POST code: check for list on known addresses
diff --git a/common/soft_i2c.c b/common/soft_i2c.c index 7777480..6357404 100644 --- a/common/soft_i2c.c +++ b/common/soft_i2c.c
@@ -287,8 +287,9 @@ { int rc; + /* perform 1 byte read transaction */ send_start(); - rc = write_byte ((addr << 1) | 1); + rc = write_byte ((addr << 1) | 0); send_stop(); return (rc ? 1 : 0);