From bef4e326061efd68040b54b05927fb9120bfb71a Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Tue, 8 Oct 2024 20:38:11 +0800 Subject: [PATCH] =?utf8?q?=E5=B0=8F=E7=9D=A1=E6=95=B0=E6=8D=AE=E4=BF=AE?= =?utf8?q?=E6=94=B9=E5=BE=85=E6=B5=8B=E8=AF=95(=E8=A1=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/service/ble_service/bleservice/bleEvent.c | 5 ++--- 1 file changed, 2 insertions(+), 3 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 c24b4b9f8..1e28a15a5 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c @@ -468,8 +468,7 @@ void sendtraningdata(msg_get_train_data_info_t *data) printf("发送训练实时数据 %d %s\n", data_len, jsonString); ble_data_type type={0x01,0x0f,data_len,1,1}; send_big_data(type,jsonString,data_len); - //send_big_data(0, jsonString, data_len, data_len, 1, 1, 0x0f, 1); - + cJSON_free(jsonString); } @@ -7317,7 +7316,7 @@ bool Read_tar_file_buf_send_Data(uint16_t pack_size,uint8_t id) if(read_size!=0) { ble_data_type type_={0x05,id,read_size,pack,pack_id}; - send_big_data(type_,(char *)&data,read_size); + send_big_data(type_,(char *)data,read_size); } -- 2.17.1