summaryrefslogtreecommitdiff
path: root/6515
diff options
context:
space:
mode:
authorJustin Koh <justinkoh@google.com>2014-06-16 16:08:57 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-06-16 16:08:57 +0000
commit6a068434df770cb7bc4e626586d4f780180ee873 (patch)
treeae0b9940aab051a4ae50982217c5f335c9ac53a3 /6515
parent1105b979f3a3eb01bd7f5d517adb1ef40df3ba09 (diff)
parent48a2e8adf58c35df55227e9baff6a12a12faf880 (diff)
downloadinvensense-6a068434df770cb7bc4e626586d4f780180ee873.tar.gz
am 48a2e8ad: am e677ba07: Merge "Invensense: 6515: allow flush calls for step detector" into klp-modular-dev
* commit '48a2e8adf58c35df55227e9baff6a12a12faf880': Invensense: 6515: allow flush calls for step detector
Diffstat (limited to '6515')
-rw-r--r--6515/libsensors_iio/MPLSensor.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/6515/libsensors_iio/MPLSensor.cpp b/6515/libsensors_iio/MPLSensor.cpp
index c63d8b4..b6d762a 100644
--- a/6515/libsensors_iio/MPLSensor.cpp
+++ b/6515/libsensors_iio/MPLSensor.cpp
@@ -5838,12 +5838,6 @@ int MPLSensor::flush(int handle)
LOGV_IF(PROCESS_VERBOSE, "HAL: flush - select sensor %s (handle %d)", sname.string(), handle);
- if (((what != StepDetector) && (!(mEnabled & (1 << what)))) ||
- ((what == StepDetector) && !(mFeatureActiveMask & INV_DMP_PEDOMETER))) {
- LOGE_IF(ENG_VERBOSE, "HAL: flush - sensor %s not enabled", sname.string());
- return -EINVAL;
- }
-
if(!(mBatchEnabled & (1 << what))) {
LOGV_IF(PROCESS_VERBOSE, "HAL:flush - batch mode not enabled for sensor %s (handle %d)", sname.string(), handle);
}