From: hcj <1224667075@qq.com> Date: Tue, 3 Sep 2024 03:12:03 +0000 (+0800) Subject: 修复#567 X-Git-Tag: release_V1.2.70_20241020_135402~541 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=eefd86a4232bbe7f94317df851c9edb63254f397;p=mirrors%2FFD230.git 修复#567 --- 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 393f925f6..3475fe435 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c @@ -380,7 +380,7 @@ void svr_pair_result_cbt_cb(uint16_t conn_id, const bd_addr_t *addr, errcode_t s { gap_br_set_bt_scan_mode(GAP_SCAN_MODE_NONE, 20); - if(get_ble_pair()) + if(get_ble_pair()&&( cm_get_A2DP_switch() || cm_get_HFP_switch())) { int ret=gap_reconnect_media_device(&phone_addr); WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "gap_reconnect_media_device!!! %X\r\n",ret);