ST / LSM6DSL

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

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

Files at this revision

API Documentation at this revision

Comitter:
cparata
Date:
Mon Jan 10 14:44:07 2022 +0000
Parent:
5:77ec4781b110
Child:
7:ec5abe7d3a62
Commit message:
Replace wait_ms with ThisThread::sleep_for for mbed OS 6 compatibility

Changed in this revision

LSM6DSLSensor.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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 )
   {