changeset 69:2cc12574e8b4

8067672: Fix I2C.read with skip and subaddress Summary: Corrected function call Reviewed-by: snazarki Contributed-by: alexey.mironov@oracle.com
author snazarki
date Wed, 17 Dec 2014 19:03:40 +0400
parents 35a49b03d773
children 081bed253c1e
files src/share/classes/com/oracle/dio/i2cbus/impl/I2CSlaveImpl.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/oracle/dio/i2cbus/impl/I2CSlaveImpl.java	Wed Dec 17 19:01:20 2014 +0400
+++ b/src/share/classes/com/oracle/dio/i2cbus/impl/I2CSlaveImpl.java	Wed Dec 17 19:03:40 2014 +0400
@@ -172,7 +172,7 @@
         tmp.putInt(subaddress);
         tmp.position(4-subaddressSize);
         write(tmp);
-        return read(dst);
+        return read(skip, dst);
     }
 
     @Override