Skip to content

Commit

Permalink
Fix compilation issue on ESP32 platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
cparata committed Sep 21, 2023
1 parent 91f134f commit 5ddad7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=STM32duino LSM6DSV16X
version=1.6.1
version=1.6.2
author=SRA
maintainer=stm32duino
sentence=Ultra Low Power inertial measurement unit.
Expand Down
6 changes: 6 additions & 0 deletions src/LSM6DSV16XSensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@


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

#define LSM6DSV16X_ACC_SENSITIVITY_FS_2G 0.061f
#define LSM6DSV16X_ACC_SENSITIVITY_FS_4G 0.122f
Expand Down

0 comments on commit 5ddad7f

Please sign in to comment.