Merge #320 into sdk602patch0521 from refs/changes/320/head 321/target/1 322/target/1
author胡传军 <1224667075@qq.com>
Wed, 19 Jun 2024 01:48:53 +0000 (01:48 +0000)
committersnickersun@163.com <accounts_62b90f7fcf51ade33b6f628e@mail.teambition.com>
Wed, 19 Jun 2024 01:48:53 +0000 (01:48 +0000)
Code review from 胡传军

* refs/changes/320/head: (2 commits squashed)

  - 修复步数不刷新BUG

  - Merge branch &#39;sdk602patch0521&#39; of https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230 into sdk602patch0521

Signed-off-by: aliyun8003852482 <1224667075@qq.com>
Reviewed-by: snickersun@163.com <accounts_62b90f7fcf51ade33b6f628e@mail.teambition.com>
Merged-by: snickersun@163.com <accounts_62b90f7fcf51ade33b6f628e@mail.teambition.com>
link: https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230/change/320
code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp

index bad1b0d..5a65e5f 100644 (file)
@@ -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);