aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorRoger Hardiman <roger@FreeBSD.org>1999-01-28 15:50:24 +0000
committerRoger Hardiman <roger@FreeBSD.org>1999-01-28 15:50:24 +0000
commit6d076bb42565f297c2e3b02840c136ce08e9ad0b (patch)
tree79c17c4082ea80dda93442f6f92a1093b5edec0b /sys/dev
parent0b672368103b3ef35d8c7fef60d64cad95f93e90 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/iicbus/iicbb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/iicbus/iicbb.c b/sys/dev/iicbus/iicbb.c
index 81629bcf2b099..3b024543f3a4f 100644
--- a/sys/dev/iicbus/iicbb.c
+++ b/sys/dev/iicbus/iicbb.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: iicbb.c,v 1.1 1998/10/31 11:31:07 nsouch Exp $
+ * $Id: iicbb.c,v 1.2 1998/11/04 22:07:24 nsouch Exp $
*
*/
@@ -309,7 +309,7 @@ static int iicbb_read(device_t dev, char * buf, int len, int *read,
bytes = 0;
while (len) {
/* XXX should insert delay here */
- *buf++ = (char)iicbb_readbyte(dev, (len == 1) ? 1 : 0);
+ *buf++ = (char)iicbb_readbyte(dev, (len == 1) ? last : 0);
bytes ++;
len --;