From 7c574436b56b4275d2626b567dc4009965718318 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E5=BD=AD=E7=A3=8A?= <1624952103@qq.com> Date: Mon, 26 Aug 2024 06:21:03 +0000 Subject: [PATCH] Merge #786 into sdk602patch0626 from refs/changes/786/head MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Code review from 彭磊 * refs/changes/786/head: (3 commits squashed) - 修改蓝牙广播模式,降低广播功耗 - Merge branch 'sdk602patch0626' of https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230 into sdk602patch0626 - 修改蓝牙广播模式,降低广播功耗(补) Signed-off-by: aliyun6865282430 <1624952103@qq.com> Reviewed-by: snickersun@163.com Merged-by: snickersun@163.com CR-link: https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230/change/786 --- .../wearable/service/ble_service/bleservice/bleService.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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", -- 2.17.1