From 00805597c45dd6d697b3536da28ca2a27e7beb3a Mon Sep 17 00:00:00 2001 From: Mio Date: Mon, 3 Feb 2020 17:24:48 +0800 Subject: [PATCH] process the accel bandwidth API bug --- README.md | 2 +- bmi160.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 473a8f8..ef4facd 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ The sensor driver package includes bmi160.h, bmi160.c and bmi160_defs.h files ## Version File | Version | Date --------------|---------|--------------- -bmi160.c | 3.8.1 | 11 Jan 2020 +bmi160.c | 3.8.2 | 03 Feb 2020 bmi160.h | 3.8.1 | 11 Jan 2020 bmi160_defs.h | 3.8.1 | 11 Jan 2020 diff --git a/bmi160.c b/bmi160.c index 9782d41..e68a2b7 100644 --- a/bmi160.c +++ b/bmi160.c @@ -3230,7 +3230,7 @@ static int8_t process_accel_bw(uint8_t *data, const struct bmi160_dev *dev) temp = *data & ~BMI160_ACCEL_BW_MASK; /* Adding bandwidth */ - *data = temp | ((bw << 4) & BMI160_ACCEL_ODR_MASK); + *data = temp | ((bw << 4) & BMI160_ACCEL_BW_MASK); //Should be BMI160_ACCEL_BW_MASK } } else