From ae3c68ffeb3dbe8f7556d58d9d87cb25978cd64f Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Sun, 29 Sep 2024 16:10:59 +0800 Subject: [PATCH] =?utf8?q?=E6=94=AF=E4=BB=98=E5=AE=9D=E8=93=9D=E7=89=99?= =?utf8?q?=E8=BF=9E=E6=8E=A5=E4=BF=AE=E6=94=B9=EF=BC=88=E8=A1=A5=EF=BC=89?= 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 06b47a30f..c274c0105 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c @@ -359,9 +359,10 @@ void svr_ble_connstate_change_cb(unsigned short conn_id, bd_addr_t *addr, gap_bl { int ret =svr_ble_adv_stop(); WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"%x",ret); + set_phone_info(addr); } - set_phone_info(addr); + ble_connect_ok(); WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "addr: ****%02x%02x%02x%02x \n", addr->addr[3], addr->addr[2], addr->addr[1], addr->addr[0]); /* 3 2 1 0 idx */ -- 2.17.1