summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin Kim <dojip.kim@lge.com>2017-01-17 10:21:13 -0800
committerAndrew Rossignol <aarossig@google.com>2017-01-17 14:43:00 -0800
commitba7c07d3b0263c7bcd268f95e54bd29ab1754fd7 (patch)
tree9ddb28a2ac610b8746c34fbd7a93431358ddddb9
parent58691fd13982b224905a849fca62d162bb94bdd8 (diff)
downloadcontexthub-ba7c07d3b0263c7bcd268f95e54bd29ab1754fd7.tar.gz
bmi160: Set the min_step_buf to 2 for sensitive mode
Number of steps to suppress false positives at the begining of the walking activity. After a walking activity has been detected, these steps will be added to the total number of steps counted. As a consequence the step counter output is suppressed during the first step of the walking activity as defined in min_step_buf. Bug: 32560999 Change-Id: I9c0ca981ab4c02dd34bf214549969db4d1126b1f
-rw-r--r--firmware/src/drivers/bosch_bmi160/bosch_bmi160.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/src/drivers/bosch_bmi160/bosch_bmi160.c b/firmware/src/drivers/bosch_bmi160/bosch_bmi160.c
index b7e936e9..c052320f 100644
--- a/firmware/src/drivers/bosch_bmi160/bosch_bmi160.c
+++ b/firmware/src/drivers/bosch_bmi160/bosch_bmi160.c
@@ -3228,7 +3228,7 @@ static void sensorInit(void)
// config step detector
#ifdef BMI160_STEP_COUNT_MODE_SENSITIVE
SPI_WRITE(BMI160_REG_STEP_CONF_0, 0x2D, 450);
- SPI_WRITE(BMI160_REG_STEP_CONF_1, 0x00, 450);
+ SPI_WRITE(BMI160_REG_STEP_CONF_1, 0x02, 450);
#else
SPI_WRITE(BMI160_REG_STEP_CONF_0, 0x15, 450);
SPI_WRITE(BMI160_REG_STEP_CONF_1, 0x03, 450);