Skip to content

Commit 1f572b8

Browse files
authored
Merge pull request #15 from cparata/main
Fix warnings when using gcc with optimization
2 parents 4795ebe + 34f9db7 commit 1f572b8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=STM32duino LSM6DSOX
2-
version=2.1.0
2+
version=2.1.1
33
author=SRA
44
maintainer=stm32duino
55
sentence=Ultra Low Power inertial measurement unit.

src/lsm6dsox_reg.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10503,6 +10503,10 @@ int32_t lsm6dsox_mode_set(lsm6dsox_ctx_t *ctx, lsm6dsox_ctx_t *aux_ctx,
1050310503

1050410504
ret = 0;
1050510505

10506+
/* FIXME: Remove warnings with STM32CubeIDE */
10507+
ctrl3_c.not_used_01 = 0;
10508+
ctrl4_c.not_used_01 = 0;
10509+
1050610510
/* reading input configuration */
1050710511
xl_hm_mode = ( (uint8_t)val->ui.xl.odr & 0x10U ) >> 4;
1050810512
xl_ulp_en = ( (uint8_t)val->ui.xl.odr & 0x20U ) >> 5;

0 commit comments

Comments
 (0)