ble:修改心率数据解析为5字节
authorCaisking <3449750381@qq.com>
Thu, 3 Oct 2024 12:03:58 +0000 (20:03 +0800)
committerSnickerSun <snickersun@163.com>
Thu, 10 Oct 2024 07:20:18 +0000 (15:20 +0800)
code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c

index a0b4730..ee2fa62 100644 (file)
@@ -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);\r
                 if(num>482)num=482;\r
 \r
-                int num_check=file_size%5;\r
+                int num_check=file_size%5;//心率数据 5个字节\r
                 if(num_check!=0)\r
                 {\r
                     printf("数据有误 %d \r\n",cmd);\r