From 780efa60919b90e8f21d23e1db2d260cc4f7fd53 Mon Sep 17 00:00:00 2001 From: cff-gite Date: Fri, 11 Mar 2022 09:39:07 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9sensor=E7=9A=84ts?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cff-gite --- api/@ohos.sensor.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.sensor.d.ts b/api/@ohos.sensor.d.ts index 79297988d2..b17805dd9a 100644 --- a/api/@ohos.sensor.d.ts +++ b/api/@ohos.sensor.d.ts @@ -95,7 +95,7 @@ declare namespace sensor { * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_GYROSCOPE}. * @param options Optional parameters specifying the interval at which sensor data is reported, {@code Options}. * @syscap SystemCapability.Sensors.Sensor - * @permission ohos.permission.GRYOSCOPE + * @permission ohos.permission.GYROSCOPE * @since 8 */ function on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback, @@ -106,7 +106,7 @@ declare namespace sensor { * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED}. * @param options Optional parameters specifying the interval at which sensor data is reported, {@code Options}. * @syscap SystemCapability.Sensors.Sensor - * @permission ohos.permission.GRYOSCOPE + * @permission ohos.permission.GYROSCOPE * @since 8 */ function on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback, -- Gitee From b20ce4e6c7f988a0a3a91629cde862329dcbb532 Mon Sep 17 00:00:00 2001 From: cff-gite Date: Fri, 11 Mar 2022 11:34:20 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9sensor=E7=9A=84ts?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cff-gite --- api/@ohos.sensor.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.sensor.d.ts b/api/@ohos.sensor.d.ts index b17805dd9a..9fd52123bb 100644 --- a/api/@ohos.sensor.d.ts +++ b/api/@ohos.sensor.d.ts @@ -340,7 +340,7 @@ declare namespace sensor { * Subscribe to sensor data once. * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_HEART_RATE}. * @syscap SystemCapability.Sensors.Sensor - * @permission ohos.permission.HEART_RATE + * @permission ohos.permission.READ_HEALTH_DATA * @since 8 */ function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback): void; -- Gitee