summaryrefslogtreecommitdiff
path: root/6515
diff options
context:
space:
mode:
authorNick Vaccaro <nvaccaro@google.com>2014-06-15 09:29:28 -0700
committerNick Vaccaro <nvaccaro@google.com>2014-06-15 10:19:07 -0700
commitc994cff5873e223100a9f4f2ce9281bec460ef16 (patch)
tree8ad739505c90651518e4a3c2ce8f8cbbd413bf86 /6515
parent12c6e53cec1b0b1f5bbfde63724d8ebb72ae936e (diff)
downloadinvensense-c994cff5873e223100a9f4f2ce9281bec460ef16.tar.gz
Invensense: 6515: allow flush calls for step detector
Pass through calls for flush of step detector. Bug: 15316005 Change-Id: If36837b77e6f7021dfe127be53774b7bd72ffdee
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 d1a9e7a..80bd0b7 100644
--- a/6515/libsensors_iio/MPLSensor.cpp
+++ b/6515/libsensors_iio/MPLSensor.cpp
@@ -5836,12 +5836,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);
}