From f823200772ea8f7b348c6f0133ae29be99e857cc Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Wed, 19 Jun 2024 09:44:30 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E6=AD=A5=E6=95=B0=E4=B8=8D?= =?utf8?q?=E5=88=B7=E6=96=B0BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/service/msg_center/src/msg_center_customer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp index bad1b0da3..5a65e5f71 100644 --- a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp @@ -54,7 +54,7 @@ namespace OHOS { #ifdef __cplusplus extern "C" { -#endif +#endif /* 订阅事件设定优先级 */ const PriorityMapper PRI_MAPPER[] = { @@ -62,6 +62,7 @@ const PriorityMapper PRI_MAPPER[] = { {TOPIC_EVENT_ON_TIME,PRIORITY_TWO}, {TOPIC_EVENT_NEXTDAY_UPDATE, PRIORITY_TWO}, {TOPIC_EVENT_ACTIVITY_UPDATE,PRIORITY_TWO}, + {TOPIC_EVENT_STEPDATA_UPDATE,PRIORITY_TWO}, {TOPIC_EVENT_INACTIVITY_UPDATE,PRIORITY_TWO}, {TOPIC_EVENT_BLE_TRAINING,PRIORITY_TWO}, {TOPIC_EVENT_BLE_TRANSMIT,PRIORITY_TWO}, @@ -128,6 +129,7 @@ void MsgCenterSubscribe() MsgCenterSubscribeTopic(TOPIC_EVENT_ALARM_RING); MsgCenterSubscribeTopic(TOPIC_EVENT_ON_TIME); MsgCenterSubscribeTopic(TOPIC_EVENT_NEXTDAY_UPDATE); + MsgCenterSubscribeTopic(TOPIC_EVENT_STEPDATA_UPDATE); MsgCenterSubscribeTopic(TOPIC_EVENT_HFP_INCOMMING); MsgCenterSubscribeTopic(TOPIC_EVENT_HFP_PHONE_ACTIVE); MsgCenterSubscribeTopic(TOPIC_EVENT_HFP_WATCH_ACTIVE); -- 2.17.1