步数数据刷新修改 1358/2
authorhcj <1224667075@qq.com>
Wed, 6 Nov 2024 10:27:26 +0000 (18:27 +0800)
committerhcj <1224667075@qq.com>
Wed, 6 Nov 2024 10:27:26 +0000 (18:27 +0800)
code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp

index 46cd19a..ca4263d 100644 (file)
@@ -430,7 +430,7 @@ void MsgCenterNotifystepProc(const Topic topic, Request* req)
             0; // OHOS::ActivityModel::GetInstance()->GetStepCounter();
         counter = *(uint32_t *)req->data;
         set_step_data(counter);
-
+        counter=get_step_data();
         OHOS::DialModelSteps::GetInstance() ->UpdateSteps(counter);//更新表盘步数
         OHOS::DialModelStepgoal::GetInstance() ->UpdateStepgoal(counter);//更新表盘目标
         OHOS::DialModelDistance::GetInstance() ->UpdateDistance(get_distance_data());//更新表盘距离