debugging library
Fork of LIS3DH by
Diff: LIS3DH.cpp
- Revision:
- 2:cc943f8d76a2
- Parent:
- 1:d4d569952436
- Child:
- 3:de2cf61c0a58
--- a/LIS3DH.cpp Sun Sep 07 01:26:25 2014 +0000 +++ b/LIS3DH.cpp Sun Dec 07 11:46:11 2014 +0000 @@ -77,8 +77,8 @@ // In other words, SUB(7) must be equal to ‘1’ while SUB(6-0) represents the address // of the first register to be read. dbf[0] = LIS3DH_OUT_X_L | 0x80; - i2c.write(acc_addr, dbf, 1, true); - i2c.read(acc_addr, data, 6, false); + i2c.write(acc_addr, dbf, 1); + i2c.read(acc_addr, data, 6); } void LIS3DH::read_mg_data(float *dt) {