From 7dac6bb430ef97649a92e83ba23a1ca30b5d3bfa Mon Sep 17 00:00:00 2001 From: wuzhihuitmac Date: Thu, 17 Feb 2022 14:24:33 +0800 Subject: [PATCH 1/2] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wuzhihuitmac --- frameworks/native/sensor/src/sensor_service_proxy.cpp | 1 - services/sensor/src/sensor_service.cpp | 2 -- 2 files changed, 3 deletions(-) diff --git a/frameworks/native/sensor/src/sensor_service_proxy.cpp b/frameworks/native/sensor/src/sensor_service_proxy.cpp index da794bc9..6e3a51c9 100755 --- a/frameworks/native/sensor/src/sensor_service_proxy.cpp +++ b/frameworks/native/sensor/src/sensor_service_proxy.cpp @@ -180,7 +180,6 @@ std::vector SensorServiceProxy::GetSensorList() ErrCode SensorServiceProxy::TransferDataChannel(const sptr &sensorBasicDataChannel, const sptr &sensorClient) { - HiLog::Debug(LABEL, "%{public}s sendFd: %{public}d", __func__, sensorBasicDataChannel->GetSendDataFd()); if (sensorBasicDataChannel == nullptr || sensorClient == nullptr) { HiLog::Error(LABEL, "%{public}s sensorBasicDataChannel or sensorClient cannot be null", __func__); return OBJECT_NULL; diff --git a/services/sensor/src/sensor_service.cpp b/services/sensor/src/sensor_service.cpp index a7e736a7..2cdc99fd 100644 --- a/services/sensor/src/sensor_service.cpp +++ b/services/sensor/src/sensor_service.cpp @@ -40,7 +40,6 @@ constexpr int32_t MAX_DMUP_PARAM = 2; constexpr int32_t INVALID_PID = -1; constexpr int64_t MAX_EVENT_COUNT = 1000; constexpr uint32_t REPORT_STATUS_LEN = 20; -int32_t g_sendFd = 0; enum { FLUSH = 0, SET_MODE, @@ -367,7 +366,6 @@ std::vector SensorService::GetSensorList() ErrCode SensorService::TransferDataChannel(const sptr &sensorBasicDataChannel, const sptr &sensorClient) { - g_sendFd = sensorBasicDataChannel->GetSendDataFd(); if ((sensorBasicDataChannel == nullptr)) { HiLog::Error(LABEL, "%{public}s sensorBasicDataChannel cannot be null", __func__); return ERR_NO_INIT; -- Gitee From 22eaf841694696c0609217e75a9df617afa47921 Mon Sep 17 00:00:00 2001 From: wuzhihuitmac Date: Thu, 17 Feb 2022 14:36:21 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wuzhihuitmac --- interfaces/native/include/sensor_agent_type.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/interfaces/native/include/sensor_agent_type.h b/interfaces/native/include/sensor_agent_type.h index d4d7dee3..323b2f76 100644 --- a/interfaces/native/include/sensor_agent_type.h +++ b/interfaces/native/include/sensor_agent_type.h @@ -128,12 +128,6 @@ typedef struct SensorEvent { uint32_t dataLen; /**< Sensor data length */ } SensorEvent; -struct Test { -char ip[30]; -char name[30]; -int32_t *data; -}; - /** * @brief Defines the callback for data reporting by the sensor agent. * -- Gitee