From 5d0488ec7ad27eae06229860942ce8f00c4c4b17 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Tue, 23 Jul 2024 11:17:42 +0800 Subject: [PATCH] =?utf8?q?=E5=A2=9E=E5=8A=A0=E6=B4=BB=E5=8A=A8=E6=95=B0?= =?utf8?q?=E6=8D=AE=E8=BF=87=E6=BB=A40=E4=B8=8D=E5=AD=98(=E8=A1=A5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/service/ble_service/blemoder/bletest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.17.1