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
Revision 6:1fcf5cb8d615, committed 2022-01-10
- 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 )
{