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

Dependents:   GR-PEACH_test_wo_rtos GR-PEACH_test_on_rtos_works_well Skywire_Demo_3 Skywire_Kinetis_K64_demo ... more

Revision:
2:cc943f8d76a2
Parent:
1:d4d569952436
Child:
3:de2cf61c0a58
diff -r d4d569952436 -r cc943f8d76a2 LIS3DH.cpp
--- 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) {