sensor: generate flush_complete event when data timestamps matches

Generating a flush_complete event right after receiving
 a flush_request from the sensor services breaks the flow
 as the client stops acquiring data.

Solution is to store the timestamp of the flush request
 and issue the flush_complete event when the timestamp
 of the sensor data matches

Change-Id: Idb273db3e69e6e2593c00298d3d458fc7c965830
Signed-off-by: Fei Li <>
Signed-off-by: Guillaume Ranquet <>
13 files changed
tree: fc1bbef9f52e3ad787f3f17a53109376998c190f
  2. als/
  3. libsensors_iio/
  4. tilt/