commit | be7bebf53140a3e908aed14724debc41befa4fa1 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Thu May 24 07:22:20 2018 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Thu May 24 07:22:20 2018 +0000 |
tree | 9e69b1d408a7670d76f52d54dc1db508c6d026c6 | |
parent | d5d53cfb778f44eb57275fe6b6bec617e403f270 [diff] | |
parent | 3c1833228fcf029ff393c7dd4d57bf9f15f3228d [diff] |
Snap for 4801384 from 3c1833228fcf029ff393c7dd4d57bf9f15f3228d to pi-release Change-Id: I3ad57e622df2ed2bdefe4dbe38143edb12743732
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) {