From edbc04988a4908662c95159404ab99c276c4db9a Mon Sep 17 00:00:00 2001 From: wuzhihuitmac Date: Wed, 23 Oct 2024 09:00:49 +0800 Subject: [PATCH] Added trigger sensor type filtering for wear detection Signed-off-by: wuzhihuitmac Change-Id: Icc16db9ac6682e21ace8c89dee09f1e2def3e348 --- services/hdi_connection/adapter/src/sensor_event_callback.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/hdi_connection/adapter/src/sensor_event_callback.cpp b/services/hdi_connection/adapter/src/sensor_event_callback.cpp index 93a021f8..11f16e51 100644 --- a/services/hdi_connection/adapter/src/sensor_event_callback.cpp +++ b/services/hdi_connection/adapter/src/sensor_event_callback.cpp @@ -35,7 +35,8 @@ const std::set g_sensorTypeTrigger = { SENSOR_TYPE_ID_DROP_DETECTION, SENSOR_TYPE_ID_HALL, SENSOR_TYPE_ID_HALL_EXT, - SENSOR_TYPE_ID_PROXIMITY1 + SENSOR_TYPE_ID_PROXIMITY1, + SENSOR_TYPE_ID_WEAR_DETECTION, }; } // namespace -- Gitee