From 5fda8e1ba2b373f2248639c191e68a8e0dd972d3 Mon Sep 17 00:00:00 2001 From: cff-gite Date: Mon, 4 Nov 2024 10:47:49 +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: I64765f1e512214d163efdf33aebfcb7da6546df6 --- 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 53b1715e..df1d5603 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