From: penglei <1624952103@qq.com> Date: Tue, 10 Sep 2024 02:26:20 +0000 (+0800) Subject: 修复距离 卡路里不清零的BUG X-Git-Tag: release_V1.2.70_20241020_135402~485^2~7^2~10 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F929%2Fhead;p=mirrors%2FFD230.git 修复距离 卡路里不清零的BUG --- 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 立即输出且中止睡çœ