From: penglei <1624952103@qq.com> Date: Mon, 26 Aug 2024 01:24:46 +0000 (+0800) Subject: 修改蓝牙广播模式,降低广播功耗(补) X-Git-Tag: release_V1.2.70_20241020_135402~549^2~22 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=6f74bf1ca1c481f72d19b8b600c50acc19cfd3ea;p=mirrors%2FFD230.git 修改蓝牙广播模式,降低广播功耗(补) --- 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 d1ed44ea5..393f925f6 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c @@ -329,7 +329,7 @@ void svr_ble_connstate_change_cb(unsigned short conn_id, bd_addr_t *addr, gap_bl if(cm_custom_ble_service_on_flag()) { svr_ble_adv_start(); - gap_br_set_bt_scan_mode(GAP_SCAN_MODE_CONNECTABLE, 0); + //gap_br_set_bt_scan_mode(GAP_SCAN_MODE_CONNECTABLE, 0); } ble_disconnect_ok(); // } @@ -345,7 +345,7 @@ void svr_ble_connstate_change_cb(unsigned short conn_id, bd_addr_t *addr, gap_bl ble_connect_ok(); - gap_br_set_bt_scan_mode(GAP_SCAN_MODE_NONE, 0); + //gap_br_set_bt_scan_mode(GAP_SCAN_MODE_NONE, 0); //int ret= a2dp_snk_connect(addr); WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "addr: ****%02x%02x%02x%02x \n",