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: Ben Fennema <>

Change-Id: I7019d5b9fd9908834efd7d4a41f7c919f19c9135
1 file changed