User Activity

I'm trying to get the Activity/Inactivity interrupt generation on the LSM6DSL working. I've implemented the example code in the data sheet below. I'm using an stm32L475.However, this interrupt fires constantly, regardless of either the sleep duration...