summaryrefslogtreecommitdiff
path: root/6515/libsensors_iio
diff options
context:
space:
mode:
authorJustin Koh <justinkoh@google.com>2014-06-16 16:01:06 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-06-16 15:39:47 +0000
commite677ba07721a9e16ca90bf6e95df52d92817d3f9 (patch)
tree622b2ff7f5b1e15a19f8872dbd9e093522164e5e /6515/libsensors_iio
parent9478d39a0d83d276899e3f5c876785c7f14ba497 (diff)
parentc994cff5873e223100a9f4f2ce9281bec460ef16 (diff)
downloadinvensense-e677ba07721a9e16ca90bf6e95df52d92817d3f9.tar.gz
Merge "Invensense: 6515: allow flush calls for step detector" into klp-modular-dev
Diffstat (limited to '6515/libsensors_iio')
-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);
}