jakkra / ZSWatch

ZSWatch - the Open Source Zephyrâ„¢ based Smartwatch, including both HW and FW.
https://forms.gle/G48Sm5zDe9aCaYtT9
GNU General Public License v3.0
2.26k stars 191 forks source link

Add reset for step counter #185

Closed Kampi closed 8 months ago

Kampi commented 8 months ago

Enable SC_26.reset_counter flag to reset the step counter.

Can be done by using bmi270_set_sensor_config with

struct bmi2_sens_config config;

config.cfg.step_counter.reset_counter = 0;

bmi270_set_sensor_config(&config, ...);
jakkra commented 8 months ago

Done