LIS3DH / STMicroelectronics / MEMS motion sensor, 3-axis accelerometer library

Dependents:   STM32_teste_5

Revision:
3:de2cf61c0a58
Parent:
2:cc943f8d76a2
Child:
4:64dac49da306
--- a/LIS3DH.cpp	Sun Dec 07 11:46:11 2014 +0000
+++ b/LIS3DH.cpp	Sat Dec 27 07:40:04 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); 
-    i2c.read(acc_addr, data, 6);
+    i2c.write(acc_addr, dbf, 1, true); 
+    i2c.read(acc_addr, data, 6, false);
 }
 
 void LIS3DH::read_mg_data(float *dt) {