ST / LSM6DSL

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   HelloWorld_ST_Sensors MOTENV_Mbed mbed-os-mqtt-client LSM6DSL_JS ... more

Revision:
6:1fcf5cb8d615
Parent:
2:578a45c4dad5
Child:
7:ec5abe7d3a62
--- a/LSM6DSLSensor.cpp	Mon Mar 04 13:51:21 2019 +0000
+++ b/LSM6DSLSensor.cpp	Mon Jan 10 14:44:07 2022 +0000
@@ -40,7 +40,7 @@
 /* Includes ------------------------------------------------------------------*/
 
 #include "LSM6DSLSensor.h"
-
+#include "rtos.h"
 
 /* Class Implementation ------------------------------------------------------*/
 
@@ -1105,7 +1105,7 @@
     return 1;
   }
   
-  wait_ms(10);
+  ThisThread::sleep_for(10);
   
   if ( LSM6DSL_ACC_GYRO_W_PedoStepReset( (void *)this, LSM6DSL_ACC_GYRO_PEDO_RST_STEP_DISABLED ) == MEMS_ERROR )
   {