Skip to content

Commit

Permalink
Update LSM6DSOSensor.h
Browse files Browse the repository at this point in the history
Signed-off-by: Carlo Parata <[email protected]>
  • Loading branch information
cparata authored Nov 28, 2023
1 parent c678717 commit b62270d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/LSM6DSOSensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@
#include "lsm6dso_reg.h"

/* Defines -------------------------------------------------------------------*/
/* For compatibility with ESP32 platforms */
#ifdef ESP32
#ifndef MSBFIRST
#define MSBFIRST SPI_MSBFIRST
#endif
#endif

#define LSM6DSO_ACC_SENSITIVITY_FS_2G 0.061f
#define LSM6DSO_ACC_SENSITIVITY_FS_4G 0.122f
Expand Down

0 comments on commit b62270d

Please sign in to comment.