diff options
Diffstat (limited to 'modules/sensors/dynamic_sensor/DynamicSensorsSubHal.cpp')
-rw-r--r-- | modules/sensors/dynamic_sensor/DynamicSensorsSubHal.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/sensors/dynamic_sensor/DynamicSensorsSubHal.cpp b/modules/sensors/dynamic_sensor/DynamicSensorsSubHal.cpp index d9e31824..d5a9b3c0 100644 --- a/modules/sensors/dynamic_sensor/DynamicSensorsSubHal.cpp +++ b/modules/sensors/dynamic_sensor/DynamicSensorsSubHal.cpp @@ -78,10 +78,9 @@ Return<Result> DynamicSensorsSubHal::batch( return ResultFromStatus(rc); } -Return<Result> DynamicSensorsSubHal::flush(int32_t sensor_handle __unused) { - ALOGE("DynamicSensorsSubHal::flush not supported."); - - return Result::INVALID_OPERATION; +Return<Result> DynamicSensorsSubHal::flush(int32_t sensor_handle) { + int rc = mDynamicSensorManager->flush(sensor_handle); + return ResultFromStatus(rc); } Return<void> DynamicSensorsSubHal::registerDirectChannel( |