From: hcj <1224667075@qq.com> Date: Mon, 16 Dec 2024 09:45:56 +0000 (+0800) Subject: 优化ble传输成功后可能没有收到后续指令导致的卡在传输中界面 X-Git-Tag: v1.3.113-repair_tp~147 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=66534bd8ceddd3e128e372b0c559b0500e4fb1d6;p=mirrors%2FFD230.git 优化ble传输成功后可能没有收到后续指令导致的卡在传输中界面 --- 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 954d8376e..fca83a19d 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c @@ -7021,6 +7021,12 @@ errcode_t decode_ota_data(ble_read_data *buffer_handle,uint8_t *data,uint16_t da BR_TRANSFER_timer = NULL; } ble_read_timer_p=NULL; + + TRANSMIT_DATA=FILE_IS_DONE; + + CustomEventPublish(TOPIC_EVENT_BLE_TRANSMIT,&TRANSMIT_DATA,1); + + ble_reply_cmd(OTA_FILE_SUCC_CMD,1);//接收成功 } @@ -8312,6 +8318,9 @@ errcode_t handle_recv_file(ble_read_data *buffer_handle,uint8_t *data, uint16_t BR_TRANSFER_timer = NULL; } ble_read_timer_p=NULL; + TRANSMIT_DATA=FILE_IS_DONE; + + CustomEventPublish(TOPIC_EVENT_BLE_TRANSMIT,&TRANSMIT_DATA,1); ble_reply_cmd(FILE_RECV_REPLY_STAT_CMD,1);//接收成功 } diff --git a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp index d572ea65f..85b45dafd 100644 --- a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp @@ -1810,6 +1810,10 @@ void MsgCenterNotifybleTransmit(const Topic topic, Request* req) if(transmittingISShow()) NotificationManager::GetInstance()->StopNotify(); } + else if (data[0]==FILE_IS_DONE) + { + set_transmittingShow_falg(data[0]); + } else { set_transmittingShow_falg(data[0]);