修复运动数据存储(补) 2461/1 2461/head 2462/target/1
authorpenglei <1624952103@qq.com>
Tue, 30 Sep 2025 10:28:51 +0000 (18:28 +0800)
committerpenglei <1624952103@qq.com>
Tue, 30 Sep 2025 10:28:51 +0000 (18:28 +0800)
code/sdk/zhihui/drivers/cywee/dml/cywee_dml.c

index ab786e3..0a25471 100644 (file)
@@ -1622,7 +1622,7 @@ void CWM_AP_SensorListen(pSensorEVT_t sensorEVT) {
                 CustomEventPublish(TOPIC_EVENT_AR_ALERT_TYPE_UPDATE,&ar_alert_type,sizeof(int)); 
                 
             }else{
-                stepcount += (int)sensorEVT->fData[1];
+                stepcount = (int)sensorEVT->fData[1];
                 memset(&c_act_result_t,0,sizeof(act_result_t));
                 c_act_result_t.activity_mode = (int)sensorEVT->fData[0];
                 c_act_result_t.steps = stepcount;