From: hcj <1224667075@qq.com> Date: Tue, 23 Jul 2024 03:17:42 +0000 (+0800) Subject: 增加活动数据过滤0不存(补) X-Git-Tag: release_V1.2.70_20241020_135402~759^2~2 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=5d0488ec7ad27eae06229860942ce8f00c4c4b17;p=mirrors%2FFD230.git 增加活动数据过滤0不存(补) --- diff --git a/code/sdk/application/wearable/service/ble_service/blemoder/bletest.cpp b/code/sdk/application/wearable/service/ble_service/blemoder/bletest.cpp index cf5ac79f4..e23cafa14 100644 --- a/code/sdk/application/wearable/service/ble_service/blemoder/bletest.cpp +++ b/code/sdk/application/wearable/service/ble_service/blemoder/bletest.cpp @@ -704,7 +704,7 @@ char * ble_sywee_history(uint8_t day,uint16_t *len ,uint8_t type) { case 0x43: //同步步数历史数据 value=get_now_hour_data(CYWEE_SAVE_DATA_STEP); - if(value) + if(value>0) { memcpy(buf+size,&creationTime,4); size+=4; @@ -714,7 +714,7 @@ char * ble_sywee_history(uint8_t day,uint16_t *len ,uint8_t type) break; case 0x44://同步燃脂时间数据 value=get_now_hour_data(CYWEE_SAVE_DATA_FAT); - if(value) + if(value>0) { memcpy(buf+size,&creationTime,4); size+=4; @@ -733,7 +733,7 @@ char * ble_sywee_history(uint8_t day,uint16_t *len ,uint8_t type) break; case 0x46://同步卡路里历史数据 value=get_now_hour_data(CYWEE_SAVE_DATA_CALORIES); - if(value) + if(value>0) { memcpy(buf+size,&creationTime,4); size+=4; @@ -743,7 +743,7 @@ char * ble_sywee_history(uint8_t day,uint16_t *len ,uint8_t type) break; case 0x47://同步距离历史数据 value=get_now_hour_data(CYWEE_SAVE_DATA_DISTANCE); - if(value) + if(value>0) { memcpy(buf+size,&creationTime,4); size+=4;