summaryrefslogtreecommitdiff
path: root/6515/libsensors_iio/MPLSensor.h
diff options
context:
space:
mode:
authorNick Vaccaro <nvaccaro@google.com>2014-06-12 08:25:36 -0700
committerNick Vaccaro <nvaccaro@google.com>2014-06-12 08:25:36 -0700
commit9478d39a0d83d276899e3f5c876785c7f14ba497 (patch)
tree927ac4c2e98090a20fc5aa5f8aca00761288fdb3 /6515/libsensors_iio/MPLSensor.h
parent12c6e53cec1b0b1f5bbfde63724d8ebb72ae936e (diff)
downloadinvensense-9478d39a0d83d276899e3f5c876785c7f14ba497.tar.gz
Invensense: 6515: fix compass data reporting when pedometer on
When step counter is on, no data was reported from compass when magnet is attached (device on charger), causing compass app to freeze. When magnet is attached, compass will now return the last good value it read, keeping the compass app happy. Bug: 15282844 Change-Id: Ib7102aac9d5a04cfdbf253be01809a1a192a81dc
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 bdaee57..ea45f9b 100644
--- a/6515/libsensors_iio/MPLSensor.h
+++ b/6515/libsensors_iio/MPLSensor.h
@@ -376,6 +376,7 @@ protected:
InputEventCircularReader mAccelInputReader;
InputEventCircularReader mGyroInputReader;
+ int mCompassOverFlow;
bool mFirstRead;
short mTempScale;
short mTempOffset;