summaryrefslogtreecommitdiff
path: root/6515/libsensors_iio/MPLSensor.h
diff options
context:
space:
mode:
authorNick Vaccaro <nvaccaro@google.com>2015-11-19 11:01:15 -0800
committerNick Vaccaro <nvaccaro@google.com>2015-11-19 11:24:29 -0800
commit12e29ea43c230a07c8dc324a815c8a287f9af95e (patch)
treeef414b143bcc8d5f063910db6549313a8c0c9dce /6515/libsensors_iio/MPLSensor.h
parent7af2cd1c96ced368c1ddeff60231000394b5cd95 (diff)
downloadinvensense-12e29ea43c230a07c8dc324a815c8a287f9af95e.tar.gz
Sensor: Invensense: 6515: return one flush complete per flush
When multiple flush completes are pending, send up only one flush complete for each MARKER returned from driver instead of sending up all pending flush complete packets upon receiving the first MARKER. This assures the proper flush complete event is inserted at the correct location in the stream of sensor events. Bug: 25290258 Bug: 25767457 Change-Id: I34fb0b1f39ace5bd6e13427b387eeb0ee92fd800
Diffstat (limited to '6515/libsensors_iio/MPLSensor.h')
-rw-r--r--6515/libsensors_iio/MPLSensor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/6515/libsensors_iio/MPLSensor.h b/6515/libsensors_iio/MPLSensor.h
index 306a07f..04a35ee 100644
--- a/6515/libsensors_iio/MPLSensor.h
+++ b/6515/libsensors_iio/MPLSensor.h
@@ -538,7 +538,7 @@ protected:
char mLeftOverBuffer[1024];
bool mInitial6QuatValueAvailable;
long mInitial6QuatValue[4];
- bool mFlushBatchSet;
+ int mFlushBatchSet;
uint32_t mSkipReadEvents;
uint32_t mSkipExecuteOnData;
bool mDataMarkerDetected;