Commit 9fcc3d5b authored by Ben Fennema's avatar Ben Fennema
Browse files

bmi160: fix step counter flush when spi command cannot be issued immediately



Switch the order of the two operands in the && statement to avoid short
circuit evaluation from preventing stepCntFlushGetData from being called
when mTask.sensors[STEPCNT].flush > 0.

Bug: 80143800
Test: turn all sensors on with SensorLogger and issue a flush and verify
step counter flush increments
Signed-off-by: default avatarBen Fennema <fennema@google.com>

Change-Id: I7019d5b9fd9908834efd7d4a41f7c919f19c9135
parent 9d6f44a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment