diff options
Diffstat (limited to '6515')
-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) |