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:
- 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*)®, (int)1, repeated = true ); + i2c_bus.write( (int)((sad << 1) | I2C_WRITE), (char*)®, (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)