From 980162122df9120631b515b2ae643e4a1e967011 Mon Sep 17 00:00:00 2001 From: penglei <1624952103@qq.com> Date: Tue, 10 Sep 2024 10:26:20 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E8=B7=9D=E7=A6=BB=20=E5=8D=A1?= =?utf8?q?=E8=B7=AF=E9=87=8C=E4=B8=8D=E6=B8=85=E9=9B=B6=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/service/msg_center/src/msg_center_customer.cpp | 4 ++-- code/sdk/drivers/peripheral/cywee/src/main_dml.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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 fce8c8ded..6dcc9a35f 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 @@ -1144,7 +1144,7 @@ void MsgCenterNotifyActivityProc(const Topic topic, Request* req) if(c_activity_result_t->activity_mode == SPORT_ACTIVE_MODE_NORMAL) { /*更新卡路里数据*/ - if(c_activity_result_t->calories!=0) + //if(c_activity_result_t->calories!=0) { set_calories_data(c_activity_result_t->calories); #if DIALDATASET @@ -1152,7 +1152,7 @@ void MsgCenterNotifyActivityProc(const Topic topic, Request* req) #endif } /*更新距离数据*/ - if(c_activity_result_t->distance!=0) + //if(c_activity_result_t->distance != 0) { set_distance_data(c_activity_result_t->distance); #if DIALDATASET diff --git a/code/sdk/drivers/peripheral/cywee/src/main_dml.c b/code/sdk/drivers/peripheral/cywee/src/main_dml.c index 7d584c645..4b2765f46 100644 --- a/code/sdk/drivers/peripheral/cywee/src/main_dml.c +++ b/code/sdk/drivers/peripheral/cywee/src/main_dml.c @@ -384,7 +384,8 @@ void cywee_reset_daily_data(void) history_step = 0; history_calories=0; //卡路里数据 history_distances=0; //历史数据 - history_fat=0; //历史数据 + history_fat=0; //历史燃脂数据 + new_fat = 0; //当前燃脂数据 } //INT[1] : 0 立即输出,但不中止睡眠。 1 立即输出且中止睡眠 -- 2.17.1