sensor report

Signed-off-by: l30053696 <liangpenghui2@huawei.com>
This commit is contained in:
梁鹏辉
2023-12-19 14:58:57 +08:00
parent 64e8a1e4ab
commit 5ce069a52b
+2 -2
View File
@@ -344,14 +344,14 @@ int32_t SensorImpl::SdcSensorActive(int32_t sensorId, bool enabled, int32_t rate
return ret;
}
int32_t SensorImpl::GetSdcSensorInfo(std::vector<SdcSensorInfoVdi>& sdcSensorInfoVdis)
int32_t SensorImpl::GetSdcSensorInfo(std::vector<SdcSensorInfoVdi> &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);