From c70bcd6d464b73d4297b4c7519c23947147af976 Mon Sep 17 00:00:00 2001 From: SnickerSun Date: Wed, 3 Jul 2024 19:51:26 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8Dbt=E7=BC=96=E8=AF=91=E9=97=AE?= =?utf8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativeui/bluetooth/src/BluetoothModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothModel.cpp index 56f3cff9c..630b69cfd 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothModel.cpp @@ -126,7 +126,7 @@ void bluetooth_enable_all(void) sec_params.io_capability = GAP_BLE_IO_CAPABILITY_NOINPUTNOOUTPUT;//最好选择没有输入输出IO能力 sec_params.sc_enable = 0x00; sec_params.sc_mode = GAP_BLE_GAP_SECURITY_MODE1_LEVEL2; - errcode_t ret = gap_ble_set_sec_param(&sec_params);//设置配对参数 发起配对弹窗 + ret = gap_ble_set_sec_param(&sec_params);//设置配对参数 发起配对弹窗 // gap_ble_sec_params_t sec_param = { 1, GAP_BLE_IO_CAPABILITY_NOINPUTNOOUTPUT, 1, GAP_BLE_GAP_SECURITY_MODE1_LEVEL3 }; // gap_ble_sec_params_t sec_param = { 1, GAP_BLE_IO_CAPABILITY_NOINPUTNOOUTPUT, 0, GAP_BLE_GAP_SECURITY_MODE1_LEVEL2 }; -- 2.17.1