From 792295a3072db69dbec64cf31ed3bbc911210b86 Mon Sep 17 00:00:00 2001 From: cff-gite Date: Fri, 1 Nov 2024 11:04:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3sensor=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E6=97=B6=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cff-gite Change-Id: I0aaf64d1fcc27d82aa6b80e55096d3eb5c973df5 --- frameworks/native/src/sensor_agent_proxy.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/frameworks/native/src/sensor_agent_proxy.cpp b/frameworks/native/src/sensor_agent_proxy.cpp index 0d0fd18a..188489b2 100644 --- a/frameworks/native/src/sensor_agent_proxy.cpp +++ b/frameworks/native/src/sensor_agent_proxy.cpp @@ -166,8 +166,6 @@ int32_t SensorAgentProxy::ActivateSensor(int32_t sensorId, const SensorUser *use return ERROR; } int32_t ret = SEN_CLIENT.EnableSensor(sensorId, samplingInterval_, reportInterval_); - samplingInterval_ = -1; - reportInterval_ = -1; if (ret != 0) { SEN_HILOGE("Enable sensor failed, ret:%{public}d", ret); subscribeSet.erase(user); -- Gitee