projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfb9f22
)
修复活动数据异常bug
author
penglei
<1624952103@qq.com>
Thu, 9 Oct 2025 01:26:20 +0000
(09:26 +0800)
committer
penglei
<1624952103@qq.com>
Thu, 9 Oct 2025 01:26:20 +0000
(09:26 +0800)
code/sdk/zhihui/drivers/cywee/dml/cywee_dml.c
patch
|
blob
|
history
diff --git
a/code/sdk/zhihui/drivers/cywee/dml/cywee_dml.c
b/code/sdk/zhihui/drivers/cywee/dml/cywee_dml.c
index
0a25471
..
09cec2a
100644
(file)
--- a/
code/sdk/zhihui/drivers/cywee/dml/cywee_dml.c
+++ b/
code/sdk/zhihui/drivers/cywee/dml/cywee_dml.c
@@
-1631,6
+1631,10
@@
void CWM_AP_SensorListen(pSensorEVT_t sensorEVT) {
c_act_result_t.step_frequency = (int)sensorEVT->fData[5];
c_act_result_t.step_length = (float)sensorEVT->fData[6];
c_act_result_t.pace = (int)(sensorEVT->fData[7] * 60);
+
+ new_calories = c_act_result_t.calories;
+ new_distance = c_act_result_t.distance;
+
// c_act_result_t.hrs = hrs;
// hrs = 0; //每次上报完 清除心率值
// cywee_func(CYWEE_MSG_TYPE_ACTIVITY_UPDATE,&c_act_result_t,sizeof(act_result_t));