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
Revision 8:9a1017389cc7, committed 2022-01-26
- Comitter:
- cparata
- Date:
- Wed Jan 26 14:10:11 2022 +0000
- Parent:
- 7:ec5abe7d3a62
- Child:
- 9:fad44d0eacd4
- Commit message:
- Add compatibility with mbed os 5
Changed in this revision
LSM6DSLSensor.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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 ) {