diff --git a/bmi160.c b/bmi160.c index 9782d41..4c546dd 100644 --- a/bmi160.c +++ b/bmi160.c @@ -3965,7 +3965,7 @@ static int8_t config_any_dur_threshold(const struct bmi160_acc_any_mot_int_cfg * /* slope duration */ dur = (uint8_t)any_motion_int_cfg->anymotion_dur; temp = data & ~BMI160_SLOPE_INT_DUR_MASK; - data = temp | (dur & BMI160_MOTION_SRC_INT_MASK); + data = temp | (dur & BMI160_SLOPE_INT_DUR_MASK); data_array[0] = data; /* add slope threshold */