Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: HelloWorld_ST_Sensors MOTENV_Mbed mbed-os-mqtt-client LSM6DSL_JS ... more
Diff: LSM6DSLSensor.cpp
- 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 )
{