From: luozheng <1732036298@qq.com> Date: Thu, 16 Oct 2025 07:41:25 +0000 (+0800) Subject: 禅道1442:解决手表-蓝牙-连接蓝牙耳机后显示异常,无法重连问题 X-Git-Tag: V1.0.9_20251128_194606_LN~229 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=a1f2e3079e2d70a6631fa9552da2776361b396af;p=mirrors%2FFD230.git 禅道1442:解决手表-蓝牙-连接蓝牙耳机后显示异常,无法重连问题 --- diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/bluetooth/src/BluetoothItemView.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/bluetooth/src/BluetoothItemView.cpp index 0250e227c..7ef18ff8a 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/bluetooth/src/BluetoothItemView.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/bluetooth/src/BluetoothItemView.cpp @@ -167,7 +167,7 @@ namespace OHOS /* ------------------------------ 检查ACL链路是否连接。 ------------------------------ */ { - #ifdef SUPPORT_BT_SERVICE + #ifdef SUPPORT_BLE_SERVICE bool aclConnected = bt_is_acl_connected((const bd_addr_t *)&infoData.addr); WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BluetoothItemView::SetConnectionstatus aclConnected %d", aclConnected); #else diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/bluetooth/src/BluetoothItemView.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/bluetooth/src/BluetoothItemView.cpp index 0250e227c..7ef18ff8a 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/bluetooth/src/BluetoothItemView.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/bluetooth/src/BluetoothItemView.cpp @@ -167,7 +167,7 @@ namespace OHOS /* ------------------------------ 检查ACL链路是否连接。 ------------------------------ */ { - #ifdef SUPPORT_BT_SERVICE + #ifdef SUPPORT_BLE_SERVICE bool aclConnected = bt_is_acl_connected((const bd_addr_t *)&infoData.addr); WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BluetoothItemView::SetConnectionstatus aclConnected %d", aclConnected); #else diff --git a/code/sdk/application/wearable/n9/nativeapp/nativeui/bluetooth/src/BluetoothItemView.cpp b/code/sdk/application/wearable/n9/nativeapp/nativeui/bluetooth/src/BluetoothItemView.cpp index 0250e227c..7ef18ff8a 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativeui/bluetooth/src/BluetoothItemView.cpp +++ b/code/sdk/application/wearable/n9/nativeapp/nativeui/bluetooth/src/BluetoothItemView.cpp @@ -167,7 +167,7 @@ namespace OHOS /* ------------------------------ 检查ACL链路是否连接。 ------------------------------ */ { - #ifdef SUPPORT_BT_SERVICE + #ifdef SUPPORT_BLE_SERVICE bool aclConnected = bt_is_acl_connected((const bd_addr_t *)&infoData.addr); WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BluetoothItemView::SetConnectionstatus aclConnected %d", aclConnected); #else diff --git a/code/sdk/build/config/target_config/brandy/config.py b/code/sdk/build/config/target_config/brandy/config.py index 42cba787c..997a3111b 100644 --- a/code/sdk/build/config/target_config/brandy/config.py +++ b/code/sdk/build/config/target_config/brandy/config.py @@ -383,7 +383,6 @@ target = { #'ENABLE_VIBRATOR', 'ENCODER_SUPPORT', 'SUPPORT_CAT1_HFP_AG_SERV', - # 'SUPPORT_BT_SERVICE', # 'SUPPORT_PHONE_SERVICE', # 'SUPPORT_SPO2_NOTIFICATION', # 'SUPPORT_SPO2_NOTIFICATION_TEST', @@ -982,6 +981,7 @@ target = { # 'ENABLE_SHAPING', 'SUPPORT_CHARGER_PLUG_DETECTION_NOTIFICATION', # 'SUPPORT_AT_CUSTOMUTILS', + 'SUPPORT_CAT1_HFP_AG_SERV', 'SUPPORT_BLE_SERVICE', 'SUPPORT_MAG_SERVICE', 'SUPPORT_PPG_SERVICE',