From: SnickerSun Date: Wed, 3 Jul 2024 11:51:26 +0000 (+0800) Subject: 修复bt编译问题 X-Git-Tag: release_V1.2.70_20241020_135402~884 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F447%2F1;p=mirrors%2FFD230.git 修复bt编译问题 --- 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 };