summaryrefslogtreecommitdiffstats
path: root/6515/libsensors_iio/MPLSensor.h
diff options
context:
space:
mode:
authorNick Vaccaro <nvaccaro@google.com>2015-11-19 08:44:06 -0800
committerNick Vaccaro <nvaccaro@google.com>2015-11-19 08:44:06 -0800
commit7af2cd1c96ced368c1ddeff60231000394b5cd95 (patch)
treef6a6527d539ee6b738d7fe3ded79b4cb29b7083a /6515/libsensors_iio/MPLSensor.h
parent63e566cd0bff765e37f12391cfc7131702b00dd9 (diff)
downloadandroid_hardware_invensense-7af2cd1c96ced368c1ddeff60231000394b5cd95.tar.gz
android_hardware_invensense-7af2cd1c96ced368c1ddeff60231000394b5cd95.tar.bz2
android_hardware_invensense-7af2cd1c96ced368c1ddeff60231000394b5cd95.zip
Sensors: Invensense: 6515: don't send duplicate events
Discard any duplicate events found instead of sending to Sensor Services. Bug: 25290258 Bug: 25766824 Change-Id: I8af60eee1e5112f3df22a96c74a9d6607ccd5adb
Diffstat (limited to '6515/libsensors_iio/MPLSensor.h')
-rw-r--r--6515/libsensors_iio/MPLSensor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/6515/libsensors_iio/MPLSensor.h b/6515/libsensors_iio/MPLSensor.h
index 63df411..306a07f 100644
--- a/6515/libsensors_iio/MPLSensor.h
+++ b/6515/libsensors_iio/MPLSensor.h
@@ -370,6 +370,7 @@ protected:
int64_t mBatchTimeouts[NumSensors];
hfunc_t mHandlers[NumSensors];
int64_t mEnabledTime[NumSensors];
+ int64_t mLastTimestamp[NumSensors];
short mCachedGyroData[3];
long mCachedAccelData[3];
long mCachedCompassData[3];