iNEMO inertial module: 3D accelerometer and 3D gyroscope.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: HelloWorld_ST_Sensors MOTENV_Mbed mbed-os-mqtt-client LSM6DSL_JS ... more
Diff: LSM6DSLSensor.cpp
- Revision:
- 8:9a1017389cc7
- Parent:
- 7:ec5abe7d3a62
- Child:
- 9:fad44d0eacd4
--- a/LSM6DSLSensor.cpp Mon Jan 10 14:47:57 2022 +0000 +++ b/LSM6DSLSensor.cpp Wed Jan 26 14:10:11 2022 +0000 @@ -1104,7 +1104,11 @@ return 1; } - ThisThread::sleep_for(10); +#if MBED_VERSION_MAJOR == 5 + wait_ms(10); +#else + ThisThread::sleep_for(10ms); +#endif if ( LSM6DSL_ACC_GYRO_W_PedoStepReset( (void *)this, LSM6DSL_ACC_GYRO_PEDO_RST_STEP_DISABLED ) == MEMS_ERROR ) {