diff options
author | Nick Vaccaro <nvaccaro@google.com> | 2014-05-02 22:18:11 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-02 22:18:11 +0000 |
commit | e36c3ed91d0dd6de857bd10b9a8591235007ee71 (patch) | |
tree | 91a6e0363050b163bacd7305779ed00958b7c632 | |
parent | 2ef6d251afe26b8885db44ce342d1e87745836cf (diff) | |
parent | 6647e75fb8fc0f07c8fe0f0ab1882d6ab8d949c9 (diff) | |
download | invensense-e36c3ed91d0dd6de857bd10b9a8591235007ee71.tar.gz |
am 6647e75f: am 56fa6bff: Invensense: 6515: remove hard-coded pedometer poll time
* commit '6647e75fb8fc0f07c8fe0f0ab1882d6ab8d949c9':
Invensense: 6515: remove hard-coded pedometer poll time
-rw-r--r-- | 6515/libsensors_iio/MPLSensor.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/6515/libsensors_iio/MPLSensor.cpp b/6515/libsensors_iio/MPLSensor.cpp index e211bbe..5896a22 100644 --- a/6515/libsensors_iio/MPLSensor.cpp +++ b/6515/libsensors_iio/MPLSensor.cpp @@ -4545,8 +4545,13 @@ int MPLSensor::getPollTime(void) int MPLSensor::getStepCountPollTime(void) { VFUNC_LOG; - /* clamped to 1ms? as spec, still rather large */ - return 100; + if (mDmpStepCountEnabled) { + LOGV_IF(0, "Step Count poll time = %lld ms", + mStepCountPollTime / 1000000LL); + // convert poll time from nS to mS + return (mStepCountPollTime / 1000000LL); + } + return 1000; } bool MPLSensor::hasStepCountPendingEvents(void) |