STMicroelectronics / STMems_Standard_C_drivers

Platform-independent drivers for STMicroelectronics MEMS motion and environmental sensors, based on standard C programming language.
BSD 3-Clause "New" or "Revised" License
732 stars 519 forks source link

lsm6dso: function "lsm6dso_sh_data_rate_set" #128

Closed loveshipting closed 3 years ago

loveshipting commented 3 years ago

Device part numbers

lsm6dso

Type of bug

examples

Describe the bug

In the file "lsm6dso_reg", at function "int32_t lsm6dso_sh_data_rate_set(stmdev_ctx_t *ctx, lsm6dso_shub_odr_t val)", to modify the bits "shub_odr" in REG"LSM6DSO_SLV1_CONFIG", but "LSM6DSO_SLV1_CONFIG" dont have the "shub_odr" in the datasheet, I think you want to modify the REG "LSM6DSO_SLV0_CONFIG". Please let me know if I am right.

E-mail: 807962927@qq.com

albezanc commented 3 years ago

Thanks for your contribution!