From 66534bd8ceddd3e128e372b0c559b0500e4fb1d6 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Mon, 16 Dec 2024 17:45:56 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96ble=E4=BC=A0=E8=BE=93=E6=88=90?= =?utf8?q?=E5=8A=9F=E5=90=8E=E5=8F=AF=E8=83=BD=E6=B2=A1=E6=9C=89=E6=94=B6?= =?utf8?q?=E5=88=B0=E5=90=8E=E7=BB=AD=E6=8C=87=E4=BB=A4=E5=AF=BC=E8=87=B4?= =?utf8?q?=E7=9A=84=E5=8D=A1=E5=9C=A8=E4=BC=A0=E8=BE=93=E4=B8=AD=E7=95=8C?= =?utf8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/service/ble_service/bleservice/bleEvent.c | 9 +++++++++ .../service/msg_center/src/msg_center_customer.cpp | 4 ++++ 2 files changed, 13 insertions(+) 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]); -- 2.17.1