Rohm / RegisterWriter

Dependents:   kionix-kx123-hello rohm-bh1790glc-hello simple-sensor-client rohm-SensorShield-example

Fork of rohm-sensor-hal by Rohm

Revision:
11:272713c9e118
Parent:
10:7ac47540f580
Child:
12:bc2446aabbfe
--- a/source/RegisterWriter.cpp	Mon Oct 03 13:34:09 2016 +0000
+++ b/source/RegisterWriter.cpp	Mon Oct 03 13:47:05 2016 +0000
@@ -55,7 +55,7 @@
     uint8_t received_bytes;
     int read_ok;
 
-    i2c_bus.write( (int)((sad << 1) | I2C_WRITE), (char*)&reg, (int)1, repeated = true );
+    i2c_bus.write( (int)((sad << 1) | I2C_WRITE), (char*)&reg, (int)1, true );
     read_ok = i2c_bus.read( (int)((sad << 1) | I2C_READ), (char*)buf, (int)buf_len);
 
     if( read_ok == 0 ){     //0 == success(ack)