From 07f74d05c9794bfa80a6214403759a585e86727d Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Wed, 28 Aug 2024 16:54:33 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96ble=E5=8F=91=E9=80=81=E6=95=B0?= =?utf8?q?=E6=8D=AE=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84=E8=A7=A3=E5=86=B3?= =?utf8?q?=E5=8F=AF=E8=83=BD=E5=87=BA=E7=8E=B0=E5=88=9A=E5=A5=BD=E6=BB=A1m?= =?utf8?q?tu=E5=AF=BC=E8=87=B4=E5=8F=91=E9=80=81=E7=A9=BA=E5=8C=85?= =?utf8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E5=B7=B2=E7=BB=8F=E5=8F=AF=E8=83=BD?= =?utf8?q?=E5=AD=98=E5=9C=A8=E5=8F=82=E6=95=B0=E8=BF=87=E5=A4=9A=E5=AF=BC?= =?utf8?q?=E8=87=B4=E7=9A=84=E5=AE=89=E5=85=A8=E9=9A=90=E6=82=A3=EF=BC=88?= =?utf8?q?=E8=A1=A52=20=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/service/ble_service/bleservice/bleEvent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c index cba6406f1..36dd7ad5b 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c @@ -5428,8 +5428,8 @@ bool Read_Health_BIN_file_buf_send_bin_Data(uint8_t day, uint16_t num,uint16_t i file_size = ftell(fp); // 获取当前文件指针位置,即文件大小 fseek(fp, 0, SEEK_SET); // 将文件指针移回文件开头 - int num=file_size%5; - if(num!=0) + int num_check=file_size%5; + if(num_check!=0) { printf("数据有误 %d \r\n",id); return false; -- 2.17.1