Skip to content

Commit

Permalink
Merge pull request #15 from cparata/main
Browse files Browse the repository at this point in the history
Fix warnings when using gcc with optimization
  • Loading branch information
cparata authored Dec 22, 2021
2 parents 4795ebe + 34f9db7 commit 1f572b8
Show file tree
Hide file tree
Showing 2 changed files with 5 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 LSM6DSOX
version=2.1.0
version=2.1.1
author=SRA
maintainer=stm32duino
sentence=Ultra Low Power inertial measurement unit.
Expand Down
4 changes: 4 additions & 0 deletions src/lsm6dsox_reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -10503,6 +10503,10 @@ int32_t lsm6dsox_mode_set(lsm6dsox_ctx_t *ctx, lsm6dsox_ctx_t *aux_ctx,

ret = 0;

/* FIXME: Remove warnings with STM32CubeIDE */
ctrl3_c.not_used_01 = 0;
ctrl4_c.not_used_01 = 0;

/* reading input configuration */
xl_hm_mode = ( (uint8_t)val->ui.xl.odr & 0x10U ) >> 4;
xl_ulp_en = ( (uint8_t)val->ui.xl.odr & 0x20U ) >> 5;
Expand Down

0 comments on commit 1f572b8

Please sign in to comment.