eldruin / lsm303agr-rs

Platform agnostic Rust driver for the LSM303AGR ultra-compact high-performance eCompass module: ultra-low-power 3D accelerometer and 3D magnetometer
Apache License 2.0
18 stars 14 forks source link

Combine setting mode and ODR functions. #24

Closed reitermarkus closed 1 year ago

reitermarkus commented 1 year ago

Combine setting mode and ODR into one function so that we can properly determine the correct delay.

reitermarkus commented 1 year ago

@eldruin, can you have a look at this? Thanks!

reitermarkus commented 1 year ago

Would it be possible to add some tests for these combinations?

These are actually all tested, e.g. https://coveralls.io/builds/52363719/source?filename=src%2Faccel_mode_and_odr.rs#L205.

Added a changlog entry and a test covering the other function.