From: Caisking <3449750381@qq.com> Date: Thu, 3 Oct 2024 12:03:58 +0000 (+0800) Subject: ble:修改心率数据解析为5字节 X-Git-Tag: release_V1.2.70_20241020_135402~214 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=f70d66a4243f241f572ada742d1a8175163367a4;p=mirrors%2FFD230.git ble:修改心率数据解析为5字节 --- 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 a0b4730e1..ee2fa62bc 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c @@ -2272,7 +2272,7 @@ void SYN_train_heart_datatCmd(uint16_t cmd,uint8_t *data,uint16_t len,uint8_t *t int num=(ble_nus_max_data_len-18); if(num>482)num=482; - int num_check=file_size%5; + int num_check=file_size%5;//心率数据 5个字节 if(num_check!=0) { printf("数据有误 %d \r\n",cmd);