From 5ce069a52b214715a15cb00a0612b66cabcbbd10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E9=B9=8F=E8=BE=89?= Date: Tue, 19 Dec 2023 14:58:57 +0800 Subject: [PATCH] sensor report Signed-off-by: l30053696 --- sensor/hdi_impl/sensor_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sensor/hdi_impl/sensor_impl.cpp b/sensor/hdi_impl/sensor_impl.cpp index 36bae14d6a..fd1277a8ad 100644 --- a/sensor/hdi_impl/sensor_impl.cpp +++ b/sensor/hdi_impl/sensor_impl.cpp @@ -344,14 +344,14 @@ int32_t SensorImpl::SdcSensorActive(int32_t sensorId, bool enabled, int32_t rate return ret; } -int32_t SensorImpl::GetSdcSensorInfo(std::vector& sdcSensorInfoVdis) +int32_t SensorImpl::GetSdcSensorInfo(std::vector &sdcSensorInfoVdis) { HDF_LOGI("%{public}s: Enter the GetSdcSensorInfo function", __func__); CHECK_SENSOR_MODULE_INSTANCE(sensorInterface, sensorInterface->GetSdcSensorInfo); StartTrace(HITRACE_TAG_SENSORS, "GetSdcSensorInfo"); struct SdcSensorInfo sdcSensorInfos[DEFUALT_SDC_SENSOR_INFO_SIZE]; - int32_t ret = sensorInterface->GetSdcSensorInfo(&&sdcSensorInfos); + int32_t ret = sensorInterface->GetSdcSensorInfo(&sdcSensorInfos); FinishTrace(HITRACE_TAG_SENSORS); if (ret != SENSOR_SUCCESS) { HDF_LOGE("%{public}s failed, error code is %{public}d", __func__, ret);