From: hcj <1224667075@qq.com> Date: Tue, 29 Oct 2024 09:57:21 +0000 (+0800) Subject: AI取消对话,去除限制,直接发送 X-Git-Tag: fd230_release_V1.3.102~29^2~105 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=5f5a7407ddf28f5d65ac3157c918a1eb15bce937;p=mirrors%2FFD230.git AI取消对话,去除限制,直接发送 --- 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 703b43683..06acce9dd 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c @@ -3063,10 +3063,10 @@ uint8_t binCheck_AI(uint8_t *buf,uint8_t *check,uint16_t len)//json 格式解析 if(buf[offset]==4) { WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,"AI 结束\r\n"); - if(AI_is_end_state) - { - AI_is_end_state=0; - } + // if(AI_is_end_state) + // { + // AI_is_end_state=0; + // } offset++; if(offset>=len) { @@ -7047,7 +7047,7 @@ errcode_t decode_ota_data(ble_read_data *buffer_handle,uint8_t *data,uint16_t da else if (last_package_id==package_id) { uint32_t replydata=0xffffffff; - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,"包重复\r\n"); + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"0xffffffff 包重复\r\n"); //ble_reply_msgarr(6,4,&replydata,4); } else if (last_package_id!=package_id) @@ -8634,7 +8634,7 @@ bool send_AI_is_ready(uint8_t type) void cancel_AI_cur_chat_(void) { - if(AI_is_end_state) + //if(AI_is_end_state) { WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,"取消当前AI对话\r\n"); uint8_t data=1; @@ -8643,10 +8643,10 @@ void cancel_AI_cur_chat_(void) AI_is_end_state=0; } - else - { - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,"已经取消当前AI对话无需再次取消\r\n"); - } + //else + // { + // WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,"已经取消当前AI对话无需再次取消\r\n"); + // } //send_big_data(0, (char *)&data, 1, 1, 1, 1, 0x07, 5);