I migrated my application from BMI160 to BMI270 and I am having a few issues. Flat detect interrupt for example is not working as in BMI160. It used to trigger only when the gravity is on the z-axis. On BMI270, it's triggering in all orientation.
I tried to play with the settings but I can't get the behaviour I want.
Can you please help me understand how to configure this feature on the BMI270?