Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: kionix-kx123-hello rohm-bh1790glc-hello simple-sensor-client rohm-SensorShield-example
Fork of rohm-sensor-hal by
Diff: source/RegisterWriter.cpp
- Revision:
- 10:7ac47540f580
- Parent:
- 8:dea50f607a45
- Child:
- 11:272713c9e118
diff -r 51c7b97b6a7d -r 7ac47540f580 source/RegisterWriter.cpp
--- a/source/RegisterWriter.cpp Mon Oct 03 11:07:46 2016 +0000
+++ b/source/RegisterWriter.cpp Mon Oct 03 13:34:09 2016 +0000
@@ -55,7 +55,7 @@
uint8_t received_bytes;
int read_ok;
- i2c_bus.write( (int)((sad << 1) | I2C_WRITE), (char*)®, (int)0 );
+ i2c_bus.write( (int)((sad << 1) | I2C_WRITE), (char*)®, (int)1, repeated = true );
read_ok = i2c_bus.read( (int)((sad << 1) | I2C_READ), (char*)buf, (int)buf_len);
if( read_ok == 0 ){ //0 == success(ack)
