commit | e68a605c9ce7832d1c499bab9686d3a1dd8a8842 | [log] [tgz] |
---|---|---|
author | Ben Fennema <fennema@google.com> | Wed May 23 10:31:55 2018 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Wed May 23 10:31:55 2018 -0700 |
tree | 4e160d5fee1f9d8fb53c4539e9f74f5df6fccc17 | |
parent | 24166d15cf82e02372413e1f1a29065d489969cc [diff] | |
parent | 3c1833228fcf029ff393c7dd4d57bf9f15f3228d [diff] |
Merge "bmi160: fix step counter flush when spi command cannot be issued immediately" into pi-dev am: 3c1833228f Change-Id: Ibba1d6b0100ae54228c3110f93707cb27de6a033
diff --git a/firmware/os/drivers/bosch_bmi160/bosch_bmi160.c b/firmware/os/drivers/bosch_bmi160/bosch_bmi160.c index 34bad87..3f272d6 100644 --- a/firmware/os/drivers/bosch_bmi160/bosch_bmi160.c +++ b/firmware/os/drivers/bosch_bmi160/bosch_bmi160.c
@@ -3344,7 +3344,7 @@ } } if (mTask.sensors[STEPCNT].flush > 0 || T(pending_step_cnt)) { - T(pending_step_cnt) = T(pending_step_cnt) && !stepCntFlushGetData(); + T(pending_step_cnt) = !stepCntFlushGetData() && T(pending_step_cnt); return; } if (mTask.pending_calibration_save) {