From: hcj <1224667075@qq.com> Date: Thu, 10 Jul 2025 06:44:26 +0000 (+0800) Subject: Merge branch 'sdk602patch0911' of https://codeup.aliyun.com/64191456b9581d62e8f81ac0... X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1952%2F1;p=mirrors%2FFD230.git Merge branch 'sdk602patch0911' of https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230 into 0911 --- 9a77354a587c70f3556b1058d5d860d056c9e71f diff --cc code/sdk/drivers/peripheral/slip/cat1Service/cat1_ws.cpp index e293a59c8,4ad686766..0e2fda24c --- a/code/sdk/drivers/peripheral/slip/cat1Service/cat1_ws.cpp +++ b/code/sdk/drivers/peripheral/slip/cat1Service/cat1_ws.cpp @@@ -1080,23 -1082,10 +1082,23 @@@ bool chat_result_analysis(char *buf // test=0; // } - + free(content_str_chat); } + } + if(strcmp("end",type_str)==0) + { + char end_str_chat[128]={0}; + + if(strlen(content_str)>0) + { + memset_s(end_str_chat,128,0,128); + memcpy_s(end_str_chat,128,end_str_chat,strlen(end_str_chat)); + ble_set_ai_Answer_str(end_str_chat,2); + } } + + cJSON_Delete(root); return true; }