From 9a07ffe9a72ec434adb8b937fefd63de59be2d52 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Sat, 28 Sep 2024 09:17:59 +0800 Subject: [PATCH] =?utf8?q?=E6=94=AF=E4=BB=98=E5=AE=9D=E5=BC=80=E6=9C=BA?= =?utf8?q?=E9=80=9F=E7=82=B9=20=E6=AD=BB=E6=9C=BA=E9=97=AE=E9=A2=98?= =?utf8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/service/ble_service/bleservice/bleService.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c b/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c index 43e2da330..aada71f18 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c @@ -152,6 +152,7 @@ errcode_t svr_ble_adv_stop(void) void svr_ble_adv_start(void) { ble_adv_falg = 1; + if(AdverFlag==true) gap_ble_start_adv(BLE_ADV_ID); } @@ -1422,7 +1423,7 @@ void ble_avd_mode_change(uint8_t mode) exit_alipay_gui = 0; printf("ble_advd_start!!!!!!!!! %d %d Bleconnect:%d\r\n",ble_adv_falg,AdverFlag,Bleconnect); - + if(Bleconnect == GAP_BLE_STATE_CONNECTED )//退出识图还在连接app需要关闭广播数据 { svr_ble_adv_stop(); -- 2.17.1