juliangaal / mpu6050

MPU6050 embedded-hal driver written in Rust
https://crates.io/crates/mpu6050
MIT License
50 stars 31 forks source link

`init` method resets ranges #64

Open anti-social opened 4 months ago

anti-social commented 4 months ago

There are constructors that allow to set accelerometer and gyro ranges: new_with_sens and new_with_addr_and_sens. But an init method resets the ranges to AccelRange::G2 and GyroRange::D250: init

It looks strange for me as how I can understand init is required to be called. If it is true then the constructors do not make sense at all.